mirror of
https://github.com/tenrok/vue-native-notification.git
synced 2026-06-23 23:30:33 +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
|
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') {
|
||||||
|
|||||||
Generated
+3794
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user