@osovitny/anatoly 3.20.15 → 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
|
|
134
|
-
|
|
135
|
-
let
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
|
|
@@ -10246,6 +10250,7 @@ class AppService extends ApiServiceBase {
|
|
|
10246
10250
|
appCoreSettings = appCoreSettings.replace(/--APPNAME--/g, g_AppName);
|
|
10247
10251
|
sessionStorage.setItem(SessionStorageKeys.appCoreSettings, appCoreSettings);
|
|
10248
10252
|
sessionStorage.setItem(SessionStorageKeys.appMSALSettings, appMSALSettings);
|
|
10253
|
+
resetAppCoreSettings();
|
|
10249
10254
|
}
|
|
10250
10255
|
}));
|
|
10251
10256
|
}
|