@resolveio/client-lib-core 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4356,21 +4356,10 @@ class CoreComponent extends BaseComponent {
|
|
|
4356
4356
|
}
|
|
4357
4357
|
});
|
|
4358
4358
|
if (this.environment.IS_PRODUCTION) {
|
|
4359
|
-
let firstTimeSWFlag = false;
|
|
4360
4359
|
this._services._socket.subscribeBypassRoute('flagWithType', 'newSW').subscribe(flag => {
|
|
4361
|
-
if (
|
|
4362
|
-
|
|
4363
|
-
let count = 15;
|
|
4364
|
-
let interval = setInterval(() => {
|
|
4365
|
-
if (count <= 0) {
|
|
4366
|
-
clearInterval(interval);
|
|
4367
|
-
return;
|
|
4368
|
-
}
|
|
4369
|
-
this._services._alert.setAlert('info', 'This page will reload in ' + (count--) + ' seconds!', 600);
|
|
4370
|
-
}, 1000);
|
|
4371
|
-
}
|
|
4360
|
+
if (flag && this.invalidVersion) {
|
|
4361
|
+
this._services._alert.setAlert('info', 'This page will reload once new version has been downloaded', 0);
|
|
4372
4362
|
}
|
|
4373
|
-
firstTimeSWFlag = true;
|
|
4374
4363
|
});
|
|
4375
4364
|
}
|
|
4376
4365
|
this._offline.offlineMode.subscribe(offline => {
|