mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
PWA: odświeżanie przy wykryciu aktualizacji
This commit is contained in:
@@ -17,7 +17,9 @@ import { register } from 'register-service-worker'
|
||||
console.log('SW: nowa aktualizacja wykryta')
|
||||
},
|
||||
updated () {
|
||||
console.log('SW: zaktualizowano dane, odśwież aplikację');
|
||||
console.log('SW: nowe dane, potrzebne odświeżenie strony!');
|
||||
|
||||
window.location.reload();
|
||||
},
|
||||
offline () {
|
||||
console.log('SW: tryb offline')
|
||||
|
||||
Reference in New Issue
Block a user