Build 29084606

This commit is contained in:
Renan LE CARO 2025-04-19 17:26:45 +02:00
parent 603ebf319a
commit 6adab3d07f
9 changed files with 87 additions and 82 deletions

View file

@ -5,8 +5,10 @@ export function generateSaveFileContent() {
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;
try {
const value = localStorage.getItem(key) as string;
localStorageContent[key] = JSON.parse(value);
} catch (e) {}
}
return JSON.stringify(localStorageContent);
return localStorageContent;
}