From 2fe5cdc605dfe4227e0cf8363c62862bca9c57df Mon Sep 17 00:00:00 2001 From: Robin Scholtes Date: Tue, 23 May 2023 20:09:14 +1200 Subject: [PATCH] [#181] update function names and make the linter happy --- src/web/waiters/ControlsWaiter.mjs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/web/waiters/ControlsWaiter.mjs b/src/web/waiters/ControlsWaiter.mjs index f2db2bf4..ea1ec42b 100755 --- a/src/web/waiters/ControlsWaiter.mjs +++ b/src/web/waiters/ControlsWaiter.mjs @@ -496,15 +496,11 @@ ${navigator.userAgent} * with that they are supposed to do */ onMaximisedRecipeClick() { - if (this.app.isMobileView() - // if #recipe is maximised - && document.querySelector("#recipe.maximised-pane") - // and #rec-list is empty - && document.querySelectorAll("#rec-list > li").length === 0 ) { - + // if #recipe is maximised & rec-list is empty on mobile UI + if (this.app.isMobileView() && document.querySelector("#recipe.maximised-pane") && document.querySelectorAll("#rec-list > li").length === 0) { // close max pane and display the expanded #operations-dropdown this.setPaneMaximised("recipe", false); - this.manager.ops.openOperationsDropdown(); + this.manager.ops.openOpsDropdown(); } } }