Skip to content

Commit edec00c

Browse files
committed
Dewarn
1 parent e00cda6 commit edec00c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/script.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4352,6 +4352,9 @@ function fold_storage() {
43524352
}
43534353
this.addEventListener("foldtoggle", function (evt) {
43544354
const info = smap[evt.detail.n || 0], wstor = hotcrp.wstorage;
4355+
if (!info) {
4356+
return;
4357+
}
43554358
let sj = wstor.json(true, "fold") || {};
43564359
evt.detail.open === info[1] ? delete sj[info[0]] : sj[info[0]] = evt.detail.open ? 0 : 1;
43574360
wstor(true, "fold", $.isEmptyObject(sj) ? null : sj);

0 commit comments

Comments
 (0)