mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 16:51:17 +00:00
fix: wakelock
This commit is contained in:
parent
1c4e7f0324
commit
f6082579c9
@ -60,10 +60,13 @@
|
|||||||
console.log(err);
|
console.log(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
wakeLock.addEventListener('release', () => {
|
if (wakeLock) {
|
||||||
// the wake lock has been released
|
// Add a listener to release the wake lock when the page is unloaded
|
||||||
console.log('Wake Lock released');
|
wakeLock.addEventListener('release', () => {
|
||||||
});
|
// the wake lock has been released
|
||||||
|
console.log('Wake Lock released');
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if ('wakeLock' in navigator) {
|
if ('wakeLock' in navigator) {
|
||||||
|
Loading…
Reference in New Issue
Block a user