mirror of
https://github.com/tenrok/vue-native-notification.git
synced 2026-06-22 20:00:37 +03:00
Merge pull request #7 from LouisMazel/master
💊 [fix] Webpack build failed 2
This commit is contained in:
@@ -103,8 +103,10 @@ const VueNativeNotification = {
|
|||||||
if (e.name !== 'TypeError')
|
if (e.name !== 'TypeError')
|
||||||
return e
|
return e
|
||||||
|
|
||||||
return navigator.serviceWorker.ready.then(reg => reg.showNotification(title, opts))
|
return navigator.serviceWorker.ready.then(
|
||||||
.then(bindOnShow, bindOnError)
|
function (reg) {
|
||||||
|
reg.showNotification(title, opts)
|
||||||
|
}).then(bindOnShow, bindOnError)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user