mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
Fix being unable to go to tab 1
This commit is contained in:
parent
0804647441
commit
9690ccd8a0
3 changed files with 5 additions and 5 deletions
|
@ -266,7 +266,7 @@ class InputWaiter {
|
|||
/**
|
||||
* Handler for messages sent back by LoaderWorkers
|
||||
*
|
||||
* @param {MessageEvent} else
|
||||
* @param {MessageEvent} e
|
||||
*/
|
||||
handleLoaderMessage(e) {
|
||||
const r = e.data;
|
||||
|
@ -1022,7 +1022,7 @@ class InputWaiter {
|
|||
*/
|
||||
goToTab() {
|
||||
const tabNum = parseInt(window.prompt("Enter tab number:", this.getActiveTab().toString()), 10);
|
||||
if (this.getInputIndex(tabNum)) {
|
||||
if (this.getInputIndex(tabNum) >= 0) {
|
||||
this.changeTab(tabNum, this.app.options.syncTabs);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue