From 768fa9a284fa1802b0a4f021bbb7b7dff72a622f Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Sun, 18 Mar 2018 21:03:59 +0100 Subject: Remove reload code --- src/stores/AppStore.js | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/stores/AppStore.js') diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 2d0a617a5..4ac8325d4 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js @@ -128,19 +128,6 @@ export default class AppStore extends Store { this.stores.router.push(data.url); }); - // Reload all services after a healthy nap - // Alternative solution for powerMonitor as the resume event is not fired - // More information: https://github.com/electron/electron/issues/1615 - const TIMEOUT = 5000; - let lastTime = (new Date()).getTime(); - setInterval(() => { - const currentTime = (new Date()).getTime(); - if (currentTime > (lastTime + TIMEOUT + 2000)) { - this._reactivateServices(); - } - lastTime = currentTime; - }, TIMEOUT); - // Set active the next service key( '⌘+pagedown, ctrl+pagedown, ⌘+alt+right, ctrl+tab', () => { @@ -360,16 +347,6 @@ export default class AppStore extends Store { return autoLauncher.isEnabled() || false; } - _reactivateServices(retryCount = 0) { - if (!this.isOnline) { - console.debug('reactivateServices: computer is offline, trying again in 5s, retries:', retryCount); - setTimeout(() => this._reactivateServices(retryCount + 1), 5000); - } else { - console.debug('reactivateServices: reload Franz'); - // window.location.reload(); - } - } - _systemDND() { const dnd = getDoNotDisturb(); if (dnd !== this.stores.settings.all.isAppMuted && !this.isSystemMuteOverridden) { -- cgit v1.2.3-54-g00ecf