disable PWA, many issues with page showing old data might be coming from it

This commit is contained in:
Andrea Vos 2022-10-05 17:03:34 +02:00
parent 1630f1009b
commit e657df81f8
2 changed files with 19 additions and 11 deletions

View File

@ -57,6 +57,14 @@
sorter();
this.confirmAge();
// TODO remove when adding back PWA
navigator.serviceWorker.getRegistrations().then(function(registrations) {
for(let registration of registrations) {
console.log('unregistering', registration);
registration.unregister();
}
});
},
methods: {
async confirmAge() {

View File

@ -146,7 +146,7 @@ export default {
buildModules: [],
modules: [
'@privyid/nuxt-csrf',
'@nuxtjs/pwa',
//'@nuxtjs/pwa',
'@nuxtjs/axios',
['@nuxtjs/redirect-module', {
rules: config.redirects,
@ -154,16 +154,16 @@ export default {
'cookie-universal-nuxt',
'vue-plausible',
],
pwa: {
manifest: {
name: title,
short_name: title,
description: description,
background_color: '#ffffff',
theme_color: colour,
lang: locale,
}
},
// pwa: {
// manifest: {
// name: title,
// short_name: title,
// description: description,
// background_color: '#ffffff',
// theme_color: colour,
// lang: locale,
// }
// },
plausible: {
domain: process.env.PLAUSIBLE_DOMAIN || translations.domain,
// NOTE(privacy): Disables automatic tracking of page views, meaning we have to do it manually