@resolveio/client-lib-core 0.0.14 → 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.
@@ -4340,17 +4340,17 @@ class CoreComponent extends BaseComponent {
4340
4340
  if (appVersion) {
4341
4341
  this.serverVersion = appVersion.version;
4342
4342
  this._services._socket.call('setWSAppVersion', this.appVersion);
4343
- if (this.appVersion < this.serverVersion) { //Reload to get new version
4344
- this.invalidVersion = true;
4345
- if (this.environment.IS_PRODUCTION) {
4343
+ if (this.environment.IS_PRODUCTION && !this.environment.IS_DEV) {
4344
+ if (this.appVersion < this.serverVersion) { //Reload to get new version
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);
4347
4347
  versionAlert = this._services._alert.setAlert('warning', 'If you are having trouble removing this message, try to hold Shift key and click the reload button. If that doesn\'t work try to close all tabs and browser and reopen. Last resort - clear all browser data/cache.', 0);
4348
+ this._services._app.setIsInvalidVersion(true);
4348
4349
  }
4349
- this._services._app.setIsInvalidVersion(true);
4350
- }
4351
- else {
4352
- if (versionAlert) {
4353
- this._services._alert.clearAlert(versionAlert.toastId);
4350
+ else {
4351
+ if (versionAlert) {
4352
+ this._services._alert.clearAlert(versionAlert.toastId);
4353
+ }
4354
4354
  }
4355
4355
  }
4356
4356
  }