mirror of
https://github.com/tenrok/vue-native-notification.git
synced 2026-05-17 04:59:37 +03:00
💊 [fix] Webpack build fail
This commit is contained in:
@@ -103,8 +103,10 @@ const VueNativeNotification = {
|
||||
if (e.name !== 'TypeError')
|
||||
return e
|
||||
|
||||
return navigator.serviceWorker.ready.then(reg => reg.showNotification(title, opts))
|
||||
.then(bindOnShow, bindOnError)
|
||||
return navigator.serviceWorker.ready.then(
|
||||
function (reg) {
|
||||
reg.showNotification(title, opts)
|
||||
}).then(bindOnShow, bindOnError)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user