Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
f6082579
Commit
f6082579
authored
Jun 24, 2024
by
Timothy J. Baek
Browse files
fix: wakelock
parent
1c4e7f03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/routes/+layout.svelte
src/routes/+layout.svelte
+7
-4
No files found.
src/routes/+layout.svelte
View file @
f6082579
...
@@ -60,10 +60,13 @@
...
@@ -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) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment