bend_puzzle/runtime-config.js
33333-33333 9d70afb4cc
Some checks failed
BEND FIELD CI / release (push) Has been cancelled
BEND FIELD CI / production-bridge (push) Has been cancelled
t
2026-08-01 22:31:04 +09:00

10 lines
500 B
JavaScript

'use strict';
(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:'auto'});
})(globalThis);