mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
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:
parent
0a406686f1
commit
4447826c00
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue