From d5ef243f442444253d007eb144522e3fb2c6128a Mon Sep 17 00:00:00 2001 From: Mazel Date: Mon, 6 Aug 2018 11:59:56 +0200 Subject: [PATCH] :pill: [fix] Webpack build fail --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index bca0054..18a5799 100644 --- a/index.js +++ b/index.js @@ -103,8 +103,10 @@ const VueNativeNotification = { if (e.name !== 'TypeError') return e - return navigator.serviceWorker.ready.then(reg => reg.showNotification(title, opts)) - .then(bindOnShow, bindOnError) + return navigator.serviceWorker.ready.then( + function (reg) { + reg.showNotification(title, opts) + }).then(bindOnShow, bindOnError) } }) }