forked from React-Group/interstellar_ai
made eslint happy
This commit is contained in:
parent
90af1ae147
commit
a8064509d0
7 changed files with 58 additions and 71 deletions
|
@ -2,14 +2,14 @@
|
|||
|
||||
// Method to export localStorage to a JSON object
|
||||
export function exportSettings(): string {
|
||||
const settings: { [key: string]: any } = {};
|
||||
const settings: { [key: string]: string } = {};
|
||||
|
||||
// Loop through all keys in localStorage and add them to the settings object
|
||||
for (let i = 0; i < localStorage.length; i++) {
|
||||
const key = localStorage.key(i);
|
||||
if (key) {
|
||||
if (key !== "accountName" && key !== "accountPassword" && key !== "accountEmail") {
|
||||
settings[key] = localStorage.getItem(key);
|
||||
settings[key] = localStorage.getItem(key) || "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue