fix: fix null reference error in Safari/Edge (#618)

fixes #617
This commit is contained in:
Nolan Lawson 2018-11-05 08:28:38 -08:00 committed by GitHub
parent 4519a3fe2d
commit 4fe0cf3f18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
export function notificationPermissionObservers (store) {
if (!process.browser) {
if (!process.browser || !navigator.permissions || !navigator.permissions.query) {
return
}