mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-27 18:16:15 -04:00
chore: pwa auto update
Signed-off-by: Corentin Thomasset <corentin.thomasset74@gmail.com>
This commit is contained in:
parent
f02a816eaa
commit
66c569f886
3 changed files with 9 additions and 1 deletions
|
@ -20,7 +20,8 @@ if (process.env.NODE_ENV === 'production') {
|
|||
console.log('New content is downloading.')
|
||||
},
|
||||
updated () {
|
||||
console.log('New content is available; please refresh.')
|
||||
console.log('New content is available; hard refresh.');
|
||||
window.location.reload(true);
|
||||
},
|
||||
offline () {
|
||||
console.log('No internet connection found. App is running in offline mode.')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue