PWA debug
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user