mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 16:26:16 -04:00
Simplified TabWaiter structure
This commit is contained in:
parent
01508a2459
commit
5efd125d9b
7 changed files with 58 additions and 233 deletions
|
@ -83,7 +83,7 @@ class HighlighterWaiter {
|
|||
*/
|
||||
displayHighlights(pos, direction) {
|
||||
if (!pos) return;
|
||||
if (this.manager.tabs.getActiveInputTab() !== this.manager.tabs.getActiveOutputTab()) return;
|
||||
if (this.manager.tabs.getActiveTab("input") !== this.manager.tabs.getActiveTab("output")) return;
|
||||
|
||||
const io = direction === "forward" ? "output" : "input";
|
||||
this.highlight(io, pos);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue