Fix writing of files from DevTools (fixes issue #3211)

This commit is contained in:
Marshall Greenblatt 2021-11-08 15:05:28 -05:00
parent 463ca625e1
commit 088816d496
1 changed files with 2 additions and 1 deletions

View File

@ -534,7 +534,8 @@ void CefDevToolsFrontend::HandleMessageFromDevToolsFrontend(
const std::string* url = params[0].GetIfString();
const std::string* content = params[1].GetIfString();
if (!url || !content)
return file_manager_.AppendToFile(*url, *content);
return;
file_manager_.AppendToFile(*url, *content);
} else {
return;
}