@osovitny/anatoly 3.20.10 → 3.20.11

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.
@@ -110,14 +110,6 @@ const AppCoreSettings = JSON.parse(
110
110
  //VadimOS: old approach
111
111
  //((document.getElementById('appCoreSettings')) as HTMLInputElement).getAttribute('data-appcoresettings')
112
112
  sessionStorage.getItem(SessionStorageKeys.appCoreSettings));
113
- //WebApp
114
- let isDevMode = `${AppCoreSettings?.isDevMode}`;
115
- const AppVersion = `${AppCoreSettings?.version}`;
116
- const IsDevMode = (isDevMode && (isDevMode == 'True' || isDevMode == 'true'));
117
- const IsProdMode = !IsDevMode;
118
- const ClientApps = AppCoreSettings?.clientApps;
119
- //Api
120
- const ApiUrl = `${AppCoreSettings?.api.url}`;
121
113
  function formatUrl(url) {
122
114
  let newUrl = url;
123
115
  if (url) {
@@ -130,6 +122,14 @@ function formatUrl(url) {
130
122
  }
131
123
  return newUrl;
132
124
  }
125
+ //WebApp
126
+ let isDevMode = `${AppCoreSettings?.isDevMode}`;
127
+ const AppVersion = `${AppCoreSettings?.version}`;
128
+ const IsDevMode = (isDevMode && (isDevMode == 'True' || isDevMode == 'true'));
129
+ const IsProdMode = !IsDevMode;
130
+ const ClientApps = AppCoreSettings?.clientApps;
131
+ const AppName = g_AppName;
132
+ const ApiUrl = g_ApiUrl;
133
133
 
134
134
  /*
135
135
  <file>
@@ -848,7 +848,6 @@ function getCurrentApp() {
848
848
  oneUrl: appOne?.baseUrl + appOne?.root
849
849
  };
850
850
  }
851
- const AppName = document.getElementById('appName').getAttribute('data-appname');
852
851
  const AppSettings = getAppSettingsByName(AppName);
853
852
 
854
853
  /*