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