From 4447826c00eac663dbb41b19819156cfa4900ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20M=C3=A9sz=C3=A1ros=2C=20Ph=2ED?= Date: Mon, 18 Apr 2022 21:41:39 +0200 Subject: [PATCH] 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 --- modules/ui/general.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/general.js b/modules/ui/general.js index b7a6255d..91605161 100644 --- a/modules/ui/general.js +++ b/modules/ui/general.js @@ -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;