mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -04:00
Change srcElement to target
(srcElement is non-standard)
This commit is contained in:
parent
de21f14fd8
commit
8739dd97d6
2 changed files with 9 additions and 9 deletions
|
@ -511,8 +511,8 @@ class OutputWaiter {
|
|||
* @param {event} mouseEvent
|
||||
*/
|
||||
changeTabClick(mouseEvent) {
|
||||
if (!mouseEvent.srcElement) return;
|
||||
const tabNum = mouseEvent.srcElement.parentElement.getAttribute("inputNum");
|
||||
if (!mouseEvent.target) return;
|
||||
const tabNum = mouseEvent.target.parentElement.getAttribute("inputNum");
|
||||
if (tabNum) {
|
||||
this.changeTab(parseInt(tabNum, 10), this.app.options.syncTabs);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue