From 4d94294486fecebf3f40246a62708260aedea7f5 Mon Sep 17 00:00:00 2001 From: Ruben Maher Date: Tue, 25 Dec 2018 16:37:00 +0900 Subject: [PATCH] fix: remove onbeforeunload workaround --- client-src/default/index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client-src/default/index.js b/client-src/default/index.js index db102fd7f6..8c60ed27fb 100644 --- a/client-src/default/index.js +++ b/client-src/default/index.js @@ -201,13 +201,8 @@ const socketUrl = url.format({ socket(socketUrl, onSocketMsg); -let isUnloading = false; -self.addEventListener('beforeunload', () => { - isUnloading = true; -}); - function reloadApp() { - if (isUnloading || !hotReload) { + if (!hotReload) { return; } if (hot) {