fix errors and warnings

This commit is contained in:
Viktor Rådberg
2023-09-18 11:33:30 +02:00
parent 4230032d6f
commit de30682597
16 changed files with 144 additions and 143 deletions

View File

@@ -125,7 +125,6 @@ const Start = ({
const { enableFullscreen } = useFullscreen();
const toggleWakeLock = () => {
console.log(wakeLock.active, wakeLockActive);
if (wakeLock.active && wakeLockActive) {
wakeLock.release();
setWakeLockActive(false);
@@ -149,7 +148,6 @@ const Start = ({
analytics.trackEvent('game_started', { ...initialGameSettings });
if (!wakeLock.active && wakeLockActive) {
console.log('yo');
wakeLock.request();
}