@resolveio/client-lib-core 0.0.15 → 0.0.16

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.
@@ -4336,11 +4336,11 @@ class CoreComponent extends BaseComponent {
4336
4336
  this.isDevice = false;
4337
4337
  }
4338
4338
  let versionAlert = null;
4339
- if (this.environment.IS_PRODUCTION && !this.environment.IS_DEV) {
4340
- this._services._socket.subscribeBypassRoute('appversion').subscribe(appVersion => {
4341
- if (appVersion) {
4342
- this.serverVersion = appVersion.version;
4343
- this._services._socket.call('setWSAppVersion', this.appVersion);
4339
+ this._services._socket.subscribeBypassRoute('appversion').subscribe(appVersion => {
4340
+ if (appVersion) {
4341
+ this.serverVersion = appVersion.version;
4342
+ this._services._socket.call('setWSAppVersion', this.appVersion);
4343
+ if (this.environment.IS_PRODUCTION && !this.environment.IS_DEV) {
4344
4344
  if (this.appVersion < this.serverVersion) { //Reload to get new version
4345
4345
  this.invalidVersion = true;
4346
4346
  versionAlert = this._services._alert.setAlert('error', 'Invalid version, attempting to update and will reload. If no reload takes place, please manually reload', 0);
@@ -4353,8 +4353,8 @@ class CoreComponent extends BaseComponent {
4353
4353
  }
4354
4354
  }
4355
4355
  }
4356
- });
4357
- }
4356
+ }
4357
+ });
4358
4358
  if (this.environment.IS_PRODUCTION) {
4359
4359
  this._services._socket.subscribeBypassRoute('flagWithType', 'newSW').subscribe(flag => {
4360
4360
  if (flag && this.invalidVersion) {