parent
1cb428b489
commit
3435ab35c9
|
@ -310,13 +310,10 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
|
|
||||||
async beforeMount() {
|
async beforeMount() {
|
||||||
if ('serviceWorker' in navigator) {
|
|
||||||
// Check if dev instance
|
|
||||||
if (window.location.hostname === 'localhost') {
|
if (window.location.hostname === 'localhost') {
|
||||||
|
// Disable on dev instances
|
||||||
console.warn('Service Worker is not enabled on localhost.');
|
console.warn('Service Worker is not enabled on localhost.');
|
||||||
return;
|
} else if ('serviceWorker' in navigator) {
|
||||||
}
|
|
||||||
|
|
||||||
// Get the config before loading
|
// Get the config before loading
|
||||||
const previousVersion = staticConfig.getSync('version');
|
const previousVersion = staticConfig.getSync('version');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue