mirror of
https://github.com/tenrok/vue-native-notification.git
synced 2026-06-20 11:50:33 +03:00
Fix linting errors
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user