Skip to content

Commit ccb92bb

Browse files
Merge pull request #997 from nextcloud/backport/996/stable21
[stable21] Only ask for permissions on HTTPS
2 parents c70289d + 3ea6b04 commit ccb92bb

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

js/notifications-main.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/notifications-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)