Files
qt5-legatus-legacy/Lts/Tools/TNE-Simulator/frontend/src/helper/localStorageUsage.js
T
2026-08-13 18:33:10 +02:00

13 lines
305 B
JavaScript
Executable File

export function saveStateToLocalStorage(item, pathObject) {
localStorage.setItem(
item,
JSON.stringify(pathObject)
);
}
export function getStateFromLocalStorage(item) {
let data = localStorage.getItem(item);
if (data !== undefined) {
console.log(data);
}
};