mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 14:11:02 +01:00
Add min / max tabs to go to tab dialog (output)
This commit is contained in:
parent
17b95f1609
commit
f55102716e
@ -796,7 +796,9 @@ class OutputWaiter {
|
||||
* Handler for go to tab button clicked
|
||||
*/
|
||||
goToTab() {
|
||||
const tabNum = parseInt(window.prompt("Enter tab number:", this.getActiveTab().toString()), 10);
|
||||
const min = this.getSmallestInputNum(),
|
||||
max = this.getLargestInputNum(),
|
||||
tabNum = parseInt(window.prompt(`Enter tab number (${min} - ${max}):`, this.getActiveTab().toString()), 10);
|
||||
if (this.outputExists(tabNum)) {
|
||||
this.changeTab(tabNum, this.app.options.syncTabs);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user