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 ); }