mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-07 06:57:12 -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
|
||||
*/
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue