2026-06-02 00:43:05 +03:00
|
|
|
import { createConfiguredWebAPIs } from './runtimeConfig';
|
2026-05-08 12:22:59 +03:00
|
|
|
import type { RuntimeAPIs } from '@openchamber/ui/lib/api/types';
|
|
|
|
|
import '@openchamber/ui/index.css';
|
|
|
|
|
import '@openchamber/ui/styles/fonts';
|
|
|
|
|
|
|
|
|
|
declare global {
|
|
|
|
|
interface Window {
|
|
|
|
|
__OPENCHAMBER_RUNTIME_APIS__?: RuntimeAPIs;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-02 00:43:05 +03:00
|
|
|
window.__OPENCHAMBER_RUNTIME_APIS__ = createConfiguredWebAPIs();
|
2026-05-08 12:22:59 +03:00
|
|
|
|
|
|
|
|
void import('@openchamber/ui/apps/renderElectronMiniChatApp')
|
|
|
|
|
.then(({ renderElectronMiniChatApp }) => {
|
2026-06-02 00:43:05 +03:00
|
|
|
renderElectronMiniChatApp(window.__OPENCHAMBER_RUNTIME_APIS__ ?? createConfiguredWebAPIs());
|
2026-05-08 12:22:59 +03:00
|
|
|
});
|