Skip to content

Commit

Permalink
Update periodic-refresh.js
Browse files Browse the repository at this point in the history
exposing refreshMinutes
  • Loading branch information
MysticJay committed Jul 26, 2022
1 parent 04e8f08 commit 75fe4b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/periodic-refresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

0 comments on commit 75fe4b3

Please sign in to comment.