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) {