chore: add comment

This commit is contained in:
zyoshoka
2023-11-28 21:11:20 +09:00
parent 86168487a8
commit c4a380860d
+2
View File
@@ -212,6 +212,8 @@ export async function common(createVue: () => App<Element>) {
navigator.wakeLock.request('screen')
.then(onVisibilityChange)
.catch(() => {
// On WebKit-based browsers, user activation is required to send wake lock request
// https://webkit.org/blog/13862/the-user-activation-api/
document.addEventListener(
'click',
() => navigator.wakeLock.request('screen').then(onVisibilityChange),