Skip to content

Commit

Permalink
Remove console.log statements from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed May 20, 2024
1 parent 5df3fe9 commit 3718cdb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions frontend/src/lib/utils/wake-lock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export function useWakeLock(active: Ref<boolean>): void {
if (!wakeLockPending.value && !wakeLock.value) {
wakeLockPending.value = true;
try {
console.log("wake lock activate");
wakeLock.value = await navigator.wakeLock.request("screen");
wakeLock.value.addEventListener("release", () => {
wakeLock.value = undefined;
Expand All @@ -37,7 +36,6 @@ export function useWakeLock(active: Ref<boolean>): void {

const releaseWakeLock = () => {
if (wakeLock.value) {
console.log("wake lock deactivate");
// Will call "release" event handler which sets wakeLock.value to undefined
wakeLock.value.release().catch((err) => {
console.warn("Error releasing wake lock", err);
Expand Down

0 comments on commit 3718cdb

Please sign in to comment.