aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/main.js')
-rw-r--r--ui/main.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/ui/main.js b/ui/main.js
deleted file mode 100644
index 33099cd..0000000
--- a/ui/main.js
+++ /dev/null
@@ -1,15 +0,0 @@
-const { invoke } = window.__TAURI__.core;
-
-const startBtn = document.getElementById("start-game-btn");
-const statusText = document.getElementById("status-text");
-
-startBtn.addEventListener("click", async () => {
- statusText.textContent = "正在获取 Manifest...";
- try {
- const response = await invoke("start_game");
- statusText.textContent = response;
- } catch (error) {
- statusText.textContent = "错误: " + error;
- console.error(error);
- }
-});