diff --git a/package-lock.json b/package-lock.json index 21287a0..5771aec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6696,11 +6696,6 @@ "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", "dev": true }, - "register-service-worker": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/register-service-worker/-/register-service-worker-1.6.2.tgz", - "integrity": "sha512-I8L87fX2TK29LDx+wgyOUh2BJ3rDIRC1FtRZEHeP3rivzDv6p1DDZLGGtPucqjEkm45+2crtFIFssEWv56+9Wg==" - }, "regjsgen": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", diff --git a/package.json b/package.json index 8d950ed..39b52b3 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ }, "dependencies": { "gif-writer": "^0.9.3", - "register-service-worker": "^1.6.2", "vue": "^2.6.6", "vuex": "^3.0.1" }, diff --git a/src/main.js b/src/main.js index d3c99f2..20ecfae 100644 --- a/src/main.js +++ b/src/main.js @@ -1,7 +1,6 @@ import Vue from 'vue' import App from '/App.vue' import store from '/store' -// import '/registerServiceWorker' Vue.config.productionTip = false diff --git a/src/registerServiceWorker.js b/src/registerServiceWorker.js deleted file mode 100644 index 76cede0..0000000 --- a/src/registerServiceWorker.js +++ /dev/null @@ -1,32 +0,0 @@ -/* eslint-disable no-console */ - -import { register } from 'register-service-worker' - -if (process.env.NODE_ENV === 'production') { - register(`${process.env.BASE_URL}service-worker.js`, { - ready () { - console.log( - 'App is being served from cache by a service worker.\n' + - 'For more details, visit https://goo.gl/AFskqB' - ) - }, - registered () { - console.log('Service worker has been registered.') - }, - cached () { - console.log('Content has been cached for offline use.') - }, - updatefound () { - console.log('New content is downloading.') - }, - updated () { - console.log('New content is available; please refresh.') - }, - offline () { - console.log('No internet connection found. App is running in offline mode.') - }, - error (error) { - console.error('Error during service worker registration:', error) - } - }) -}