Skip to content

Commit

Permalink
Fixed issue where kiosk would restart every minute for the hour it wa…
Browse files Browse the repository at this point in the history
…s set to restart (if the option was selected)
  • Loading branch information
matt-schuh committed Jun 25, 2015
1 parent 004a4d0 commit 3d3e85e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $(function(){
var hour = parseInt(data.restart) - 1;
var now = moment();
restart = moment();
restart.hour(hour);
restart.hour(hour).set({'minute':0, 'second':0, 'millisecond':0});
if(now.isAfter(restart)) restart.add(1,'d'); //if we're past the time today, do it tomorrow
setInterval(function(){
var now = moment();
Expand Down

0 comments on commit 3d3e85e

Please sign in to comment.