This commit is contained in:
Renan LE CARO 2025-04-06 18:21:53 +02:00
parent 42abc6bc01
commit 46228a2128
20 changed files with 226 additions and 129 deletions

View file

@ -0,0 +1,13 @@
export function generateSaveFileContent() {
const localStorageContent: Record<string, string> = {};
for (let i = 0; i < localStorage.length; i++) {
const key = localStorage.key(i) as string;
// Avoid including recovery info in the recovery info
if(['recovery_data'].includes(key)) continue
const value = localStorage.getItem(key) as string;
localStorageContent[key] = value;
}
return JSON.stringify(localStorageContent);
}