vue-native-notification
Advanced tools
Comparing version 1.0.4 to 1.0.5
16
index.js
@@ -48,6 +48,6 @@ // Notification object | ||
var show = function (title, opts, e) { | ||
e.onerror = function () { } | ||
e.onclick = function () { } | ||
e.onclose = function () { } | ||
e.onshow = function () { } | ||
if (!e.onerror) e.onerror = function () { } | ||
if (!e.onclick) e.onclick = function () { } | ||
if (!e.onclose) e.onclose = function () { } | ||
if (!e.onshow) e.onshow = function () { } | ||
return Promise.resolve() | ||
@@ -72,3 +72,3 @@ .then(function () { | ||
defaultEvents.onerror(event) | ||
onerror() | ||
e.onerror(event) | ||
} | ||
@@ -79,3 +79,3 @@ | ||
defaultEvents.onclick(event) | ||
onclick() | ||
e.onclick(event) | ||
} | ||
@@ -86,3 +86,3 @@ | ||
defaultEvents.onclose(event) | ||
onclose() | ||
e.onclose(event) | ||
} | ||
@@ -93,3 +93,3 @@ | ||
defaultEvents.onshow(event) | ||
onshow() | ||
e.onshow(event) | ||
} | ||
@@ -96,0 +96,0 @@ |
{ | ||
"name": "vue-native-notification", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Vue.js plugin for native notifications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97692