Migrate to svelte 5

This commit is contained in:
kwaroran
2024-10-23 02:31:37 +09:00
parent e434c7ab96
commit c7330719ad
120 changed files with 2398 additions and 2033 deletions

View File

@@ -6,6 +6,7 @@ import { loadData } from "./ts/storage/globalApi";
import { initHotkey } from "./ts/hotkey";
import { polyfill } from "./ts/polyfill";
import { preLoadCheck } from "./preload";
import { mount } from "svelte";
const errorHandler = (event: ErrorEvent) => {
console.error(event.error)
@@ -30,9 +31,9 @@ if(preLoadCheck()){
try {
polyfill()
app = new App({
target: document.getElementById("app"),
});
app = mount(App, {
target: document.getElementById("app"),
});
loadData()
initHotkey()