Files
risuai/src/main.ts
2023-05-07 12:41:45 +09:00

17 lines
383 B
TypeScript

import "./styles.css";
import App from "./App.svelte";
import { loadData } from "./ts/globalApi";
import { Buffer as BufferPolyfill } from 'buffer'
import { initHotkey } from "./ts/hotkey";
declare var Buffer: typeof BufferPolyfill;
globalThis.Buffer = BufferPolyfill
const app = new App({
target: document.getElementById("app"),
});
loadData()
initHotkey()
export default app;