Skip to content

Commit

Permalink
Merge wake lock hotfix
Browse files Browse the repository at this point in the history
Merge wake lock hotfix
  • Loading branch information
trenton-telge committed Nov 20, 2018
2 parents a5d5068 + 2cff344 commit 35f41be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -465,11 +465,10 @@
navigator.getWakeLock("screen").then(function(wakeLock) {
const request = wakeLock.createRequest();
});
// Mozilla documented method
const mozlock = window.navigator.requestWakeLock('screen');
// nosleep.js backup
new NoSleep().enable();
}
document.addEventListener('click', requestWakeLock, false);
</script>
</head>
<body>
Expand Down

0 comments on commit 35f41be

Please sign in to comment.