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
|
@ -533,9 +533,9 @@ class InputWaiter {
|
||||||
inputOpen(e) {
|
inputOpen(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
if (e.srcElement.files.length > 0) {
|
if (e.target.files.length > 0) {
|
||||||
this.loadUIFiles(e.srcElement.files);
|
this.loadUIFiles(e.target.files);
|
||||||
e.srcElement.value = "";
|
e.target.value = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -880,10 +880,10 @@ class InputWaiter {
|
||||||
* @param {event} mouseEvent
|
* @param {event} mouseEvent
|
||||||
*/
|
*/
|
||||||
removeTabClick(mouseEvent) {
|
removeTabClick(mouseEvent) {
|
||||||
if (!mouseEvent.srcElement) {
|
if (!mouseEvent.target) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const tabNum = mouseEvent.srcElement.parentElement.parentElement.getAttribute("inputNum");
|
const tabNum = mouseEvent.target.parentElement.parentElement.getAttribute("inputNum");
|
||||||
if (tabNum) {
|
if (tabNum) {
|
||||||
this.removeTab(parseInt(tabNum, 10));
|
this.removeTab(parseInt(tabNum, 10));
|
||||||
}
|
}
|
||||||
|
@ -986,10 +986,10 @@ class InputWaiter {
|
||||||
* @param {event} mouseEvent
|
* @param {event} mouseEvent
|
||||||
*/
|
*/
|
||||||
changeTabClick(mouseEvent) {
|
changeTabClick(mouseEvent) {
|
||||||
if (!mouseEvent.srcElement) {
|
if (!mouseEvent.target) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const tabNum = mouseEvent.srcElement.parentElement.getAttribute("inputNum");
|
const tabNum = mouseEvent.target.parentElement.getAttribute("inputNum");
|
||||||
if (tabNum) {
|
if (tabNum) {
|
||||||
this.changeTab(parseInt(tabNum, 10), this.app.options.syncTabs);
|
this.changeTab(parseInt(tabNum, 10), this.app.options.syncTabs);
|
||||||
}
|
}
|
||||||
|
|
|
@ -511,8 +511,8 @@ class OutputWaiter {
|
||||||
* @param {event} mouseEvent
|
* @param {event} mouseEvent
|
||||||
*/
|
*/
|
||||||
changeTabClick(mouseEvent) {
|
changeTabClick(mouseEvent) {
|
||||||
if (!mouseEvent.srcElement) return;
|
if (!mouseEvent.target) return;
|
||||||
const tabNum = mouseEvent.srcElement.parentElement.getAttribute("inputNum");
|
const tabNum = mouseEvent.target.parentElement.getAttribute("inputNum");
|
||||||
if (tabNum) {
|
if (tabNum) {
|
||||||
this.changeTab(parseInt(tabNum, 10), this.app.options.syncTabs);
|
this.changeTab(parseInt(tabNum, 10), this.app.options.syncTabs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue