MY brain is fried and fired || Patrick helped me on the drpodown issues --> none left for the moment
This commit is contained in:
parent
7e85c36ba8
commit
5dd5b939df
4 changed files with 130 additions and 65 deletions
15
app/backend/GetLocalStorage.ts
Normal file
15
app/backend/GetLocalStorage.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
// getLocalStorageData.ts
|
||||
|
||||
export const getAllLocalStorageItems = (): Record<string, string | null> => {
|
||||
const allData: Record<string, string | null> = {};
|
||||
|
||||
for (let i = 0; i < localStorage.length; i++) {
|
||||
const key = localStorage.key(i);
|
||||
if (key) {
|
||||
const value = localStorage.getItem(key);
|
||||
allData[key] = value;
|
||||
}
|
||||
}
|
||||
return allData;
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue