From 75fe4b3f1cf7595999da24b380a37ba4c0f23197 Mon Sep 17 00:00:00 2001 From: MysticJay Date: Tue, 26 Jul 2022 17:57:50 +0200 Subject: [PATCH] Update periodic-refresh.js exposing refreshMinutes --- plugins/periodic-refresh.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/periodic-refresh.js b/plugins/periodic-refresh.js index c18a92a7d..e5a05c1bf 100644 --- a/plugins/periodic-refresh.js +++ b/plugins/periodic-refresh.js @@ -10,12 +10,13 @@ var periodicRefresh = {}; window.plugin.periodicRefresh = periodicRefresh; +periodicRefresh.refreshMinutes = 60; + function wakeup () { console.log('periodicRefresh: timer fired - leaving idle mode'); idleReset(); } function setup () { - var refreshMinutes = 60; - setInterval (wakeup, refreshMinutes*60*1000 ); + setInterval (wakeup, periodicRefresh.refreshMinutes*60*1000 ); }