diff --git a/data/life/life.js b/data/life/life.js index 0ed5bf1e..de9f5d2c 100644 --- a/data/life/life.js +++ b/data/life/life.js @@ -213,4 +213,13 @@ function updateColorSelector() { } function updateBackgroundColor(color) { playerList[parseInt(document.getElementById("inputPlayer").value) - 1].canvas.customVarColor = color -} \ No newline at end of file +} + + +//Wake lock! +var noSleep = new NoSleep(); +function enableNoSleep() { + noSleep.enable(); + document.removeEventListener('touchstart', enableNoSleep, false); +} +document.addEventListener('touchstart', enableNoSleep, false); \ No newline at end of file diff --git a/life.html b/life.html index cfe9dcad..7a57a496 100644 --- a/life.html +++ b/life.html @@ -48,7 +48,7 @@ - +