mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Force CEF to reload if window.reload doesn't exist
This commit is contained in:
@@ -45,7 +45,7 @@ void AtomCefRenderProcessHandler::Reload(CefRefPtr<CefBrowser> browser) {
|
||||
|
||||
CefRefPtr<CefV8Value> reloadFunction = global->GetValue("reload");
|
||||
reloadFunction->ExecuteFunction(global, arguments);
|
||||
if (reloadFunction->HasException()) {
|
||||
if (!reloadFunction->IsFunction() || reloadFunction->HasException()) {
|
||||
browser->ReloadIgnoreCache();
|
||||
}
|
||||
context->Exit();
|
||||
|
||||
Reference in New Issue
Block a user