MY brain is fried and fired || Patrick helped me on the drpodown issues --> none left for the moment

This commit is contained in:
sageTheDM 2024-09-27 14:56:46 +02:00
parent 7e85c36ba8
commit 5dd5b939df
4 changed files with 130 additions and 65 deletions

View 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;
};