1
0
mirror of synced 2024-11-24 06:50:16 +01:00

fix: make the linter happy

This commit is contained in:
thez3ro 2024-04-06 09:30:52 +00:00
parent a1892d4411
commit bf9066ae2e
2 changed files with 3 additions and 5 deletions

View File

@ -243,14 +243,12 @@ class RecipeWaiter {
const uniqueIcons = icons.map(function(item) {
return item.getAttribute("hide-args");
}).unique();
console.log(uniqueIcons)
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 (uniqueIcons.length === 1 && icon.getAttribute("hide-args") !== controlsIconStatus) {
this.manager.controls.hideRecipeArgsClick()
this.manager.controls.hideRecipeArgsClick();
}
}