mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 07:21:02 -04:00
[#181] update function names and make the linter happy
This commit is contained in:
parent
0aab3bdf5a
commit
2fe5cdc605
1 changed files with 3 additions and 7 deletions
|
@ -496,15 +496,11 @@ ${navigator.userAgent}
|
||||||
* with that they are supposed to do
|
* with that they are supposed to do
|
||||||
*/
|
*/
|
||||||
onMaximisedRecipeClick() {
|
onMaximisedRecipeClick() {
|
||||||
if (this.app.isMobileView()
|
// if #recipe is maximised & rec-list is empty on mobile UI
|
||||||
// if #recipe is maximised
|
if (this.app.isMobileView() && document.querySelector("#recipe.maximised-pane") && document.querySelectorAll("#rec-list > li").length === 0) {
|
||||||
&& document.querySelector("#recipe.maximised-pane")
|
|
||||||
// and #rec-list is empty
|
|
||||||
&& document.querySelectorAll("#rec-list > li").length === 0 ) {
|
|
||||||
|
|
||||||
// close max pane and display the expanded #operations-dropdown
|
// close max pane and display the expanded #operations-dropdown
|
||||||
this.setPaneMaximised("recipe", false);
|
this.setPaneMaximised("recipe", false);
|
||||||
this.manager.ops.openOperationsDropdown();
|
this.manager.ops.openOpsDropdown();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue