This commit is contained in:
Kyle
2019-08-10 15:20:24 -07:00
parent cf2c840133
commit 88a8c4e87e
2 changed files with 19 additions and 4 deletions

View File

@@ -213,4 +213,13 @@ function updateColorSelector() {
}
function updateBackgroundColor(color) {
playerList[parseInt(document.getElementById("inputPlayer").value) - 1].canvas.customVarColor = color
}
}
//Wake lock!
var noSleep = new NoSleep();
function enableNoSleep() {
noSleep.enable();
document.removeEventListener('touchstart', enableNoSleep, false);
}
document.addEventListener('touchstart', enableNoSleep, false);