Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1266)

Unified Diff: remoting/webapp/crd/js/event_handlers.js

Issue 848993002: Improve apps v2 upgrade UX (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address CL feedback Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/webapp/crd/js/event_handlers.js
diff --git a/remoting/webapp/crd/js/event_handlers.js b/remoting/webapp/crd/js/event_handlers.js
index f6b86d2c42d5d4ffa036255d121ccebed972fe97..2c0cfd47dd98bf6754f3da0eee1e6c0d1ca7415d 100644
--- a/remoting/webapp/crd/js/event_handlers.js
+++ b/remoting/webapp/crd/js/event_handlers.js
@@ -16,7 +16,7 @@ remoting.initGlobalEventHandlers = function() {
// for both events.
remoting.fullscreen.addListener(remoting.onResize);
if (!base.isAppsV2()) {
- window.addEventListener('beforeunload', remoting.promptClose, false);
+ window.addEventListener('beforeunload', remoting.onBeforeUnload, false);
window.addEventListener('unload', remoting.disconnect, false);
}
}

Powered by Google App Engine
This is Rietveld 408576698