mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-21 04:26:14 -04:00
wip
This commit is contained in:
parent
9624c5b351
commit
e78021ff83
24 changed files with 840 additions and 437 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue