Fix black screen: wait for Vite before Electron, retry loadURL, show boot fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-09-14 07:39:46 +08:00
parent 45105cd069
commit df50b6b680
6 changed files with 102 additions and 10 deletions
+5 -1
View File
@@ -4,9 +4,13 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TTRPG Character Builder</title>
<style>
html, body { margin: 0; height: 100%; background: #09090b; color: #eee; font-family: Segoe UI, sans-serif; }
#boot-fallback { padding: 24px; }
</style>
</head>
<body>
<div id="root"></div>
<div id="root"><div id="boot-fallback">Loading TTRPG Character Builder…</div></div>
<script type="module" src="./main.tsx"></script>
</body>
</html>