mirror of
https://github.com/tenrok/vue-native-notification.git
synced 2026-05-17 03:39:39 +03:00
Merge pull request #6 from LouisMazel/master
💊 [Fix] Build failed with webpack
This commit is contained in:
@@ -44,12 +44,11 @@ const VueNativeNotification = {
|
||||
Vue.prototype.$notification.requestPermission = requestPermission
|
||||
|
||||
// Show function
|
||||
var show = function (title, opts, {
|
||||
onerror = function () { },
|
||||
onclick = function () { },
|
||||
onclose = function () { },
|
||||
onshow = function () { }
|
||||
}) {
|
||||
var show = function (title, opts, e) {
|
||||
e.onerror = function () { }
|
||||
e.onclick = function () { }
|
||||
e.onclose = function () { }
|
||||
e.onshow = function () { }
|
||||
return Promise.resolve()
|
||||
.then(function () {
|
||||
if (options.requestOnNotify && Notification.permission !== 'granted') {
|
||||
|
||||
Generated
+3794
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-native-notification",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"description": "Vue.js plugin for native notifications",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/dennisbruner/vue-native-notification.git",
|
||||
|
||||
Reference in New Issue
Block a user