Skip to content

Commit 1e98bed

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
Only ask for permissions on HTTPS
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent c70289d commit 1e98bed

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/App.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,12 @@ export default {
314314
return
315315
}
316316
317+
if (window.location.protocol === 'http:') {
318+
console.debug('Notifications require HTTPS')
319+
this.webNotificationsGranted = false
320+
return
321+
}
322+
317323
console.info('Notifications permissions not yet requested')
318324
},
319325

0 commit comments

Comments
 (0)