From 7f41228a7148c14d295f68f536b6227e10a2675f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 24 Feb 2021 15:40:19 +0300 Subject: decouple runtime-info object from counters --- js/App.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'js/App.js') diff --git a/js/App.js b/js/App.js index 3c940d8a6..67d932369 100644 --- a/js/App.js +++ b/js/App.js @@ -714,11 +714,6 @@ const App = { App.updateRuntimeInfo(); }); - if (!this.getInitParam("bw_limit")) - window.setInterval(() => { - App.updateRuntimeInfo(); - }, 60 * 1000) - } else { Feeds.reload(); @@ -772,12 +767,16 @@ const App = { }, 3600 * 1000); } - console.log("second stage ok"); - PluginHost.run(PluginHost.HOOK_INIT_COMPLETE, null); - } + if (!this.getInitParam("bw_limit")) + window.setInterval(() => { + App.updateRuntimeInfo(); + }, 60 * 1000) + + console.log("second stage ok"); + }, checkForUpdates: function() { console.log('checking for updates...'); -- cgit v1.2.3