Remove service worker (#168)

This commit is contained in:
Kevin Tan
2024-01-29 14:31:35 +08:00
committed by GitHub
parent 396e98a29d
commit b53f951b75
4 changed files with 11741 additions and 15757 deletions

View File

@@ -18,7 +18,6 @@
"debug": "^4.1.1",
"lodash": "^4.17.21",
"node-polyglot": "^2.4.0",
"register-service-worker": "^1.7.1",
"roboto-fontface": "*",
"vue": "^2.6.11",
"vue-class-component": "^7.2.3",

View File

@@ -15,7 +15,6 @@ import App from './App.vue';
import 'roboto-fontface/css/roboto/roboto-fontface.css';
import '@mdi/font/css/materialdesignicons.css';
import './registerServiceWorker';
Vue.config.productionTip = false;

View File

@@ -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)
},
})
}

27464
yarn.lock

File diff suppressed because it is too large Load Diff