Fixing using variables before initialization in popup script
This commit is contained in:
		
							parent
							
								
									1c022e5180
								
							
						
					
					
						commit
						eb660f3a3d
					
				|  | @ -255,15 +255,15 @@ async function removeLi() { | ||||||
|   also.removeChild(this.parentNode); |   also.removeChild(this.parentNode); | ||||||
|   let list = also.querySelectorAll("li"); |   let list = also.querySelectorAll("li"); | ||||||
|   list.forEach((li, index) => { |   list.forEach((li, index) => { | ||||||
|     lhs = li.querySelector(".lhs"); |     let lhs = li.querySelector(".lhs"); | ||||||
|     lhs.id = "lhs-" + index; |     lhs.id = "lhs-" + index; | ||||||
|     lhs.name = lhs.id; |     lhs.name = lhs.id; | ||||||
| 
 | 
 | ||||||
|     rhs = li.querySelector(".rhs"); |     let rhs = li.querySelector(".rhs"); | ||||||
|     rhs.id = "rhs-" + index; |     rhs.id = "rhs-" + index; | ||||||
|     rhs.name = rhs.id; |     rhs.name = rhs.id; | ||||||
| 
 | 
 | ||||||
|     rhsLabel = li.querySelector("label"); |     let rhsLabel = li.querySelector("label"); | ||||||
|     rhsLabel.for = rhs.id; |     rhsLabel.for = rhs.id; | ||||||
|   }); |   }); | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue