basesite-shared-grid-lib 21.0.1-beta.93 → 21.0.2

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.
@@ -48,17 +48,12 @@ class GridLibraryService {
48
48
  this.setBaseUrl();
49
49
  }
50
50
  setBaseUrl(environment = "") {
51
- if (window.location.origin.includes('fcelspx')) {
52
- this.baseUrl = window.location.origin + '/designhub/api';
53
- }
54
- else if (environment == 'uat') {
55
- this.baseUrl = 'https://fcemsuat.intel.com/designhub/api';
56
- }
57
- else if (environment == 'production') {
58
- this.baseUrl = 'https://fcems.intel.com/designhub/api';
51
+ //All envs except localhost can use dynamic URL (localhost can't because it should point to test or another port)
52
+ if (window.location.origin.includes('localhost')) {
53
+ this.baseUrl = 'https://fcemstest.intel.com/designhub/api';
59
54
  }
60
55
  else {
61
- this.baseUrl = 'https://fcelspx-test.intel.com/designhub/api';
56
+ this.baseUrl = window.location.origin + '/designhub/api';
62
57
  }
63
58
  }
64
59
  getColDef(gridId) {