From b6a23f5bbfa2b8411af9b8217dc2a28100f7d2d5 Mon Sep 17 00:00:00 2001 From: Killa Fish <61081555+Fiszh@users.noreply.github.com> Date: Sat, 26 Oct 2024 01:07:40 +0200 Subject: [PATCH] ok --- src/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings.js b/src/settings.js index 5298c7b..26a7660 100644 --- a/src/settings.js +++ b/src/settings.js @@ -154,6 +154,7 @@ function displaySettings() { settingsDiv.append(textSetting); const textInput = document.getElementById(`quantity-${i}`); + const param = setting.param; if (userSettings[param] && userSettings[param] !== setting.value) { textInput.value = String(userSettings[param]) @@ -161,7 +162,6 @@ function displaySettings() { if (textInput) { textInput.addEventListener('input', function () { - const param = setting.param; if (param === "font") { const settingNameElement = textSetting.querySelector('.setting_name');