PWA debug

This commit is contained in:
2023-06-24 11:17:04 +02:00
parent de8f5e3e90
commit 6f6aa25553

View File

@@ -20,7 +20,9 @@ export class AppComponent {
this._swUpdate.versionUpdates.subscribe((evt) => {
console.log('Version update', evt);
if (evt.type === 'VERSION_READY') {
console.log('tt');
this._swUpdate.activateUpdate().then(() => {
console.log('Update!');
this._notifications.add({
text: "New version available. DiunaBI will restart in 10 seconds.",
duration: 10000,