2
0
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:
Dennis Bruner
2018-08-03 18:45:33 +02:00
committed by GitHub
3 changed files with 3800 additions and 7 deletions
+5 -6
View File
@@ -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') {
+3794
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -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",