feat: dev shortcut Ctrl+Shift+X to wipe IndexedDB and restart
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -188,6 +188,15 @@ export async function initApp(): Promise<void> {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
showParentCodePrompt();
|
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);
|
const progress = await getProgress(db);
|
||||||
|
|||||||
Reference in New Issue
Block a user