Don't restart blackout when already in one. Fixes #11

master
William Toohey 10 years ago
parent 7247222553
commit 772381dc19
  1. 5
      src/js/HuesCanvas.js

@ -386,7 +386,10 @@ HuesCanvas.prototype.doBlackout = function(whiteout) {
this.blackoutColour = "#000";
}
this.blackoutTimeout = 0; // indefinite
this.blackoutStart = this.audio.currentTime;
// Don't restart the blackout animation if we're already blacked out
if(!this.blackout) {
this.blackoutStart = this.audio.currentTime;
}
this.blackout = true;
this.needsRedraw = true;
if(localStorage["blackoutUI"] == "on") {

Loading…
Cancel
Save