Deployment vorbereitet mit URI-Prefix
This commit is contained in:
1 parent
b41c3bc3a6
commit
fa02a7ade0
11 files changed
+183
-22
No files matched your search
@@ -7,9 +7,10 @@
|
||||
* 3. Karte, Polylines, Marker und Kontrollansicht aufbauen
|
||||
*/
|
||||
|
||||
const tenant = window.CMBNET_TENANT || window.location.pathname.split('/')[1];
|
||||
const apiBase = `/${tenant}/api`;
|
||||
const wsUrl = `${window.location.protocol === 'https:' ? 'wss' : 'ws'}://${window.location.host}/${tenant}/ws`;
|
||||
const appUrl = window.CMBNET_APP_URL || ((path) => `/${String(path || '').replace(/^\/+/, '')}`);
|
||||
const tenant = window.CMBNET_TENANT || '';
|
||||
const apiBase = appUrl(`${tenant}/api`);
|
||||
const wsUrl = `${window.location.protocol === 'https:' ? 'wss' : 'ws'}://${window.location.host}${appUrl(`${tenant}/ws`)}`;
|
||||
const storageKey = `cmbnet:${tenant}:map`;
|
||||
const themeStorageKey = 'cmbnet:theme';
|
||||
const currentAccountId = Number(window.CMBNET_ACCOUNT_ID) || null;
|
||||
|
||||
Reference in new issue
Block a user