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