2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-11 13:53:26 +00:00

Fix being unable to go to tab 1

This commit is contained in:
j433866
2019-04-04 14:42:21 +01:00
parent 0804647441
commit 9690ccd8a0
3 changed files with 5 additions and 5 deletions

View File

@@ -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);
}
}