mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-06-15 18:54:47 -04:00
Build 29084606
This commit is contained in:
parent
603ebf319a
commit
6adab3d07f
9 changed files with 87 additions and 82 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue