Fix frozen startup if aposthrope used in style name

This commit is contained in:
Mészáros Gergely 2022-04-17 00:27:41 +02:00
parent 3253bfdac3
commit 5647d70d04

View file

@ -405,7 +405,7 @@ document.querySelectorAll("[data-locked]").forEach(function (e) {
// lock option
function lock(id) {
const input = document.querySelector("[data-stored='" + id + "']");
const input = document.querySelector("[data-stored=\"" + id + "\"]");
if (input) localStorage.setItem(id, input.value);
const el = document.getElementById("lock_" + id);
if (!el) return;