2
0
mirror of https://github.com/tenrok/vue-native-notification.git synced 2026-06-23 00:00:34 +03:00

💊 [fix] Webpack build fail

This commit is contained in:
Mazel
2018-08-06 11:59:56 +02:00
parent 278870b0bf
commit d5ef243f44
+4 -2
View File
@@ -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)
} }
}) })
} }