Skip to content

Commit

Permalink
Fixed bug where "updateHtmlBackground" could not be disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
ConfidantCommunications committed May 4, 2022
1 parent 76f3983 commit bd5cc98
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ package ca.confidant.glory.controller;

var pcp = cast(facade.retrieveProxy(PagesConfigProxy.NAME) , PagesConfigProxy);
var updateHtmlBackground = pcp.getUpdateHtmlBackground();
var interval = Std.parseInt(updateHtmlBackground);
var type = (updateHtmlBackground == "onChangePage") ? "onChangePage" : "onInterval";
// eim.setupHtmlBackgroundUpdates(type,interval);
switch(type){ //keep this, so the type acts as an enabler
switch(updateHtmlBackground){ //keep this, so the type acts as an enabler
case "onChangePage":
//
doCapture();
// case "onInterval":
//not implemented yet. maybe for future
//var interval = Std.parseInt(updateHtmlBackground);//yields seconds
Expand All @@ -93,6 +91,5 @@ package ca.confidant.glory.controller;
return;
}
// Timer.delay(doCapture,5000);//waits for the pages to draw
doCapture();
}
}

0 comments on commit bd5cc98

Please sign in to comment.