feat(#901): ability to lock seed in templates editor

This commit is contained in:
Azgaar 2022-12-10 19:55:23 +03:00
parent 425325888e
commit f20029eac5
5 changed files with 14 additions and 12 deletions

View file

@ -452,7 +452,7 @@ function unlock(id) {
// check if option is locked
function locked(id) {
const lockEl = document.getElementById("lock_" + id);
return lockEl.dataset.locked == 1;
return lockEl.dataset.locked === "1";
}
// return key value stored in localStorage or null