// Runtime config for Obohr OS UI (edit for your backend)
window.__OBOHR_CONFIG__ = window.__OBOHR_CONFIG__ || {
  apiUrl: "http://127.0.0.1:8000",
  wsUrl: "ws://127.0.0.1:8000/ws",
  safeMode: "1",
  viewerMode: "0",
  apiToken: ""
};
if (window.__OBOHR_CONFIG__ && !window.__OBOHR_CONFIG__.wsUrl && window.__OBOHR_CONFIG__.apiUrl) {
  const api = window.__OBOHR_CONFIG__.apiUrl;
  if (api.startsWith("https://")) {
    window.__OBOHR_CONFIG__.wsUrl = api.replace("https://", "wss://") + "/ws";
  } else if (api.startsWith("http://")) {
    window.__OBOHR_CONFIG__.wsUrl = api.replace("http://", "ws://") + "/ws";
  }
}
