@osovitny/anatoly 3.20.16 → 3.20.17

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.
@@ -117,6 +117,11 @@ function getAppCoreSettings() {
117
117
  }
118
118
  function resetAppCoreSettings() {
119
119
  AppCoreSettings = getAppCoreSettings();
120
+ let isDevMode = `${AppCoreSettings?.isDevMode}`;
121
+ AppVersion = `${AppCoreSettings?.version}`;
122
+ IsDevMode = (isDevMode && (isDevMode == 'True' || isDevMode == 'true'));
123
+ IsProdMode = !IsDevMode;
124
+ ClientApps = AppCoreSettings?.clientApps;
120
125
  }
121
126
  function formatUrl(url) {
122
127
  let newUrl = url;
@@ -130,13 +135,12 @@ function formatUrl(url) {
130
135
  }
131
136
  return newUrl;
132
137
  }
133
- let AppCoreSettings = getAppCoreSettings();
134
- //WebApp
135
- let isDevMode = `${AppCoreSettings?.isDevMode}`;
136
- const AppVersion = `${AppCoreSettings?.version}`;
137
- const IsDevMode = (isDevMode && (isDevMode == 'True' || isDevMode == 'true'));
138
- const IsProdMode = !IsDevMode;
139
- const ClientApps = AppCoreSettings?.clientApps;
138
+ let AppCoreSettings;
139
+ let AppVersion;
140
+ let IsDevMode = true;
141
+ let IsProdMode = !IsDevMode;
142
+ let ClientApps;
143
+ resetAppCoreSettings();
140
144
  const AppName = g_AppName;
141
145
  const ApiUrl = g_ApiUrl;
142
146