Apostrophe in custom style name freeze FMG (#775)

* fix concurency issue at load

* Fix async concurrency error.

* Fix frozen startup if aposthrope used in style name

Co-authored-by: GoteGuru <monk@geotronic.hu>
This commit is contained in:
Gergely Mészáros, Ph.D 2022-04-18 21:41:39 +02:00 committed by GitHub
parent 0a406686f1
commit 4447826c00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;