mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Fix close tab buttons not working in old firefox.
This commit is contained in:
parent
e34d521dcc
commit
84cc3d16ed
2 changed files with 2 additions and 2 deletions
|
@ -833,6 +833,7 @@ class InputWaiter {
|
|||
newTabButtonIcon.innerText = "clear";
|
||||
|
||||
newTabButton.appendChild(newTabButtonIcon);
|
||||
newTabButton.addEventListener("click", this.removeTabClick.bind(this));
|
||||
|
||||
newTab.appendChild(newTabContent);
|
||||
newTab.appendChild(newTabButton);
|
||||
|
@ -1179,7 +1180,7 @@ class InputWaiter {
|
|||
if (!mouseEvent.target) {
|
||||
return;
|
||||
}
|
||||
const tabNum = mouseEvent.target.parentElement.parentElement.getAttribute("inputNum");
|
||||
const tabNum = mouseEvent.target.closest("button").parentElement.getAttribute("inputNum");
|
||||
if (tabNum) {
|
||||
this.removeInput(parseInt(tabNum, 10));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue