mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 07:21:02 -04:00
rename recipeList var to recipeListItems ( since we are selecting list items ), and ingredient to item
This commit is contained in:
parent
8649b90a04
commit
9a7ec25493
1 changed files with 3 additions and 3 deletions
|
@ -627,13 +627,13 @@ class RecipeWaiter {
|
||||||
* overhaul for another time / issue.
|
* overhaul for another time / issue.
|
||||||
*/
|
*/
|
||||||
updateSelectedOperations() {
|
updateSelectedOperations() {
|
||||||
const recipeList = document.querySelectorAll("#rec-list > li");
|
const recipeListItems = document.querySelectorAll("#rec-list > li");
|
||||||
const operations = document.querySelectorAll(".operation");
|
const operations = document.querySelectorAll(".operation");
|
||||||
|
|
||||||
this.clearAllSelectedClasses();
|
this.clearAllSelectedClasses();
|
||||||
|
|
||||||
recipeList.forEach((ingredient) => {
|
recipeListItems.forEach((item) => {
|
||||||
const ingredientName = ingredient.getAttribute("data-name");
|
const ingredientName = item.getAttribute("data-name");
|
||||||
|
|
||||||
operations.forEach((operation) => {
|
operations.forEach((operation) => {
|
||||||
if (ingredientName === operation.getAttribute("data-name")) {
|
if (ingredientName === operation.getAttribute("data-name")) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue