bend_puzzle/runtime-config.js

10 lines
500 B
JavaScript
Raw Permalink Normal View History

2026-07-31 12:54:46 +09:00
'use strict';
2026-08-01 16:06:14 +09:00
(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=''}
2026-08-01 22:31:04 +09:00
root.BendRuntimeConfig=Object.freeze({cloudApi:true,singleSharedWorld:true,worldId:'link-field-main',appBaseUrl,apiBridgeUrl,realtimeTransport:'auto'});
2026-08-01 16:06:14 +09:00
})(globalThis);