mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 18:24:09 +03:00
Force CEF to reload if window.reload doesn't exist
This commit is contained in:
parent
6ea19bc765
commit
a736063e7e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user