Force CEF to reload if window.reload doesn't exist

This commit is contained in:
Corey Johnson 2012-10-15 12:06:36 -07:00
parent 6ea19bc765
commit a736063e7e

View File

@ -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();