Files
risuai/src/main.ts

25 lines
545 B
TypeScript

import "./styles.css";
import "core-js/actual"
import App from "./App.svelte";
import { loadData } from "./ts/storage/globalApi";
import { initHotkey } from "./ts/hotkey";
import { polyfill } from "./ts/polyfill";
import { watchParamButton } from "./ts/plugins/embedscript";
let app: App;
try {
polyfill()
app = new App({
target: document.getElementById("app"),
});
loadData()
initHotkey()
watchParamButton()
} catch (error) {
console.error(error, error.stack)
alert(error)
}
export default app;