mirror of
https://github.com/gchq/CyberChef
synced 2025-01-06 01:28:48 +00:00
fix: make the linter happy
This commit is contained in:
parent
a1892d4411
commit
bf9066ae2e
2 changed files with 3 additions and 5 deletions
|
@ -243,14 +243,12 @@ class RecipeWaiter {
|
||||||
const uniqueIcons = icons.map(function(item) {
|
const uniqueIcons = icons.map(function(item) {
|
||||||
return item.getAttribute("hide-args");
|
return item.getAttribute("hide-args");
|
||||||
}).unique();
|
}).unique();
|
||||||
console.log(uniqueIcons)
|
|
||||||
|
|
||||||
const controlsIconStatus = document.getElementById("hide-icon").getAttribute("hide-args");
|
const controlsIconStatus = document.getElementById("hide-icon").getAttribute("hide-args");
|
||||||
console.log(controlsIconStatus)
|
|
||||||
|
|
||||||
// If all icons are in the same state and the global icon isn't, fix it
|
// If all icons are in the same state and the global icon isn't, fix it
|
||||||
if (uniqueIcons.length === 1 && icon.getAttribute("hide-args") !== controlsIconStatus) {
|
if (uniqueIcons.length === 1 && icon.getAttribute("hide-args") !== controlsIconStatus) {
|
||||||
this.manager.controls.hideRecipeArgsClick()
|
this.manager.controls.hideRecipeArgsClick();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue