2
0
mirror of https://github.com/tenrok/vue-native-notification.git synced 2026-06-20 12:50:33 +03:00

Fix linting errors

This commit is contained in:
Dennis Bruner
2020-06-24 02:17:52 +02:00
parent 820cf15f6e
commit 0deafffc9e
+2 -2
View File
@@ -64,7 +64,6 @@ const VueNativeNotification = {
return new Error('No permission to show notification') return new Error('No permission to show notification')
} }
const bindOnError = function (event) { const bindOnError = function (event) {
'use strict' 'use strict'
defaultEvents.onerror(event) defaultEvents.onerror(event)
@@ -100,8 +99,9 @@ const VueNativeNotification = {
return notification return notification
} catch (e) { } catch (e) {
if (e.name !== 'TypeError') if (e.name !== 'TypeError') {
return e return e
}
return navigator.serviceWorker.ready.then( return navigator.serviceWorker.ready.then(
function (reg) { function (reg) {