This commit is contained in:
Renan LE CARO 2025-04-07 14:08:48 +02:00
parent 9624c5b351
commit e78021ff83
24 changed files with 840 additions and 437 deletions

View file

@ -1,13 +1,12 @@
export function generateSaveFileContent() {
const localStorageContent: Record<string, string> = {};
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);
}
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);
}