2
0
mirror of https://github.com/tenrok/vue-native-notification.git synced 2026-06-05 17:32:25 +03:00

Merge pull request #7 from LouisMazel/master

💊 [fix] Webpack build failed 2
This commit is contained in:
Dennis Bruner
2018-08-06 21:44:15 +02:00
committed by GitHub
+4 -2
View File
@@ -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)
}
})
}