mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Display prompt (still un-retina-fied) when reloading w/ unsaved buffers
This commit is contained in:
@@ -42,9 +42,9 @@ void AtomCefRenderProcessHandler::Reload(CefRefPtr<CefBrowser> browser) {
|
||||
CefV8ValueList arguments;
|
||||
|
||||
CefRefPtr<CefV8Value> reloadFunction = global->GetValue("reload");
|
||||
// reloadFunction->ExecuteFunction(global, arguments);
|
||||
// if (reloadFunction->HasException()) {
|
||||
reloadFunction->ExecuteFunction(global, arguments);
|
||||
if (reloadFunction->HasException()) {
|
||||
browser->ReloadIgnoreCache();
|
||||
// }
|
||||
}
|
||||
context->Exit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user