We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e00cda6 commit edec00cCopy full SHA for edec00c
scripts/script.js
@@ -4352,6 +4352,9 @@ function fold_storage() {
4352
}
4353
this.addEventListener("foldtoggle", function (evt) {
4354
const info = smap[evt.detail.n || 0], wstor = hotcrp.wstorage;
4355
+ if (!info) {
4356
+ return;
4357
+ }
4358
let sj = wstor.json(true, "fold") || {};
4359
evt.detail.open === info[1] ? delete sj[info[0]] : sj[info[0]] = evt.detail.open ? 0 : 1;
4360
wstor(true, "fold", $.isEmptyObject(sj) ? null : sj);
0 commit comments