2
0
mirror of https://github.com/tenrok/vue-native-notification.git synced 2026-06-23 22:20:34 +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 Vue.prototype.$notification.requestPermission = requestPermission
// Show function // Show function
var show = function (title, opts, { var show = function (title, opts, e) {
onerror = function () { }, e.onerror = function () { }
onclick = function () { }, e.onclick = function () { }
onclose = function () { }, e.onclose = function () { }
onshow = function () { } e.onshow = function () { }
}) {
return Promise.resolve() return Promise.resolve()
.then(function () { .then(function () {
if (options.requestOnNotify && Notification.permission !== 'granted') { 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", "name": "vue-native-notification",
"version": "1.0.2", "version": "1.0.3",
"description": "Vue.js plugin for native notifications", "description": "Vue.js plugin for native notifications",
"main": "index.js", "main": "index.js",
"repository": "https://github.com/dennisbruner/vue-native-notification.git", "repository": "https://github.com/dennisbruner/vue-native-notification.git",