From eb660f3a3d222b716fbb81b662659b1a33d457a2 Mon Sep 17 00:00:00 2001 From: Jean Date: Sat, 22 Feb 2025 17:27:55 -0800 Subject: [PATCH] Fixing using variables before initialization in popup script --- src/save-load-options.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/save-load-options.js b/src/save-load-options.js index e9bb07c..b2224ba 100644 --- a/src/save-load-options.js +++ b/src/save-load-options.js @@ -255,15 +255,15 @@ async function removeLi() { also.removeChild(this.parentNode); let list = also.querySelectorAll("li"); list.forEach((li, index) => { - lhs = li.querySelector(".lhs"); + let lhs = li.querySelector(".lhs"); lhs.id = "lhs-" + index; lhs.name = lhs.id; - rhs = li.querySelector(".rhs"); + let rhs = li.querySelector(".rhs"); rhs.id = "rhs-" + index; rhs.name = rhs.id; - rhsLabel = li.querySelector("label"); + let rhsLabel = li.querySelector("label"); rhsLabel.for = rhs.id; }); }