@osovitny/anatoly 3.20.11 → 3.20.12
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.
|
@@ -93,7 +93,6 @@ const AppContextStorageKeys = {
|
|
|
93
93
|
|
|
94
94
|
Authors:
|
|
95
95
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
96
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
97
96
|
|
|
98
97
|
Created:
|
|
99
98
|
26 Jun 2020
|
|
@@ -106,10 +105,16 @@ const AppContextStorageKeys = {
|
|
|
106
105
|
</file>
|
|
107
106
|
*/
|
|
108
107
|
//App
|
|
109
|
-
const AppCoreSettings = JSON.parse(
|
|
110
108
|
//VadimOS: old approach
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
/*
|
|
110
|
+
export const AppCoreSettings = JSON.parse(
|
|
111
|
+
((document.getElementById('appCoreSettings')) as HTMLInputElement).getAttribute('data-appcoresettings')
|
|
112
|
+
);
|
|
113
|
+
*/
|
|
114
|
+
function getAppCoreSettings() {
|
|
115
|
+
const json = sessionStorage.getItem(SessionStorageKeys.appCoreSettings);
|
|
116
|
+
return json ? JSON.parse(json) : null;
|
|
117
|
+
}
|
|
113
118
|
function formatUrl(url) {
|
|
114
119
|
let newUrl = url;
|
|
115
120
|
if (url) {
|
|
@@ -122,6 +127,7 @@ function formatUrl(url) {
|
|
|
122
127
|
}
|
|
123
128
|
return newUrl;
|
|
124
129
|
}
|
|
130
|
+
let AppCoreSettings = getAppCoreSettings();
|
|
125
131
|
//WebApp
|
|
126
132
|
let isDevMode = `${AppCoreSettings?.isDevMode}`;
|
|
127
133
|
const AppVersion = `${AppCoreSettings?.version}`;
|