diff --git a/src/app.ts b/src/app.ts index da70c98..96ff8c7 100644 --- a/src/app.ts +++ b/src/app.ts @@ -188,6 +188,15 @@ export async function initApp(): Promise { e.preventDefault(); showParentCodePrompt(); } + // Dev shortcut: Ctrl+Shift+X to wipe all data and restart + if (e.ctrlKey && e.shiftKey && e.key === "X") { + e.preventDefault(); + if (confirm("DEV: Alle Daten löschen und neu starten?")) { + const delReq = indexedDB.deleteDatabase("zauberwald"); + delReq.onsuccess = () => location.reload(); + delReq.onerror = () => location.reload(); + } + } }); const progress = await getProgress(db);