Fixes
This commit is contained in:
parent
8c375ec517
commit
2501a693e1
3 changed files with 6 additions and 5 deletions
4
index.js
4
index.js
|
|
@ -1,5 +1,5 @@
|
|||
const key = "checklist-items";
|
||||
const objs = JSON.parse(window.localStorage.getItem(key));
|
||||
const objs = JSON.parse(window.localStorage.getItem(key) || "{}");
|
||||
let currentId = 0;
|
||||
|
||||
const save = () => {
|
||||
|
|
@ -117,4 +117,4 @@ const load = () => {
|
|||
|
||||
|
||||
|
||||
window.addEventListener('load', load);
|
||||
window.addEventListener('load', load);
|
||||
|
|
|
|||
Loading…
Reference in a new issue