d
This commit is contained in:
parent
c3a6f5ff37
commit
4c4e767ec6
73 changed files with 3502 additions and 741 deletions
|
|
@ -1,2 +1,10 @@
|
|||
'use strict';
|
||||
globalThis.BendRuntimeConfig=Object.freeze({cloudApi:false});
|
||||
(function configureLinkFieldRuntime(root){
|
||||
let appBaseUrl='',apiBridgeUrl='';
|
||||
try{
|
||||
const scriptUrl=root.document?.currentScript?.src||root.location?.href||'';
|
||||
appBaseUrl=new URL('./',scriptUrl).href;
|
||||
apiBridgeUrl=new URL('api-bridge.php',appBaseUrl).href;
|
||||
}catch(_){appBaseUrl='';apiBridgeUrl=''}
|
||||
root.BendRuntimeConfig=Object.freeze({cloudApi:true,singleSharedWorld:true,worldId:'link-field-main',appBaseUrl,apiBridgeUrl,realtimeTransport:'http-poll'});
|
||||
})(globalThis);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue