18 lines
530 B
TypeScript
18 lines
530 B
TypeScript
import { createWebAPIs } from './api';
|
|||
|
|
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;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
window.__OPENCHAMBER_RUNTIME_APIS__ = createWebAPIs();
|
||
|
|
|
||
|
|
void import('@openchamber/ui/apps/renderElectronMiniChatApp')
|
||
|
|
.then(({ renderElectronMiniChatApp }) => {
|
||
|
|
renderElectronMiniChatApp(window.__OPENCHAMBER_RUNTIME_APIS__ ?? createWebAPIs());
|
||
|
|
});
|