initial push
This commit is contained in:
11
js/storage.js
Normal file
11
js/storage.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// js/storage.js
|
||||
export function getStoredProjects() {
|
||||
try {
|
||||
return JSON.parse(localStorage.getItem('ls_projects') || '{}');
|
||||
} catch (e) {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
export function setStoredProjects(projectsObj) {
|
||||
localStorage.setItem('ls_projects', JSON.stringify(projectsObj));
|
||||
}
|
||||
Reference in New Issue
Block a user