summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qemu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu.py b/qemu.py
index 27da57f..8cb3583 100644
--- a/qemu.py
+++ b/qemu.py
@@ -87,10 +87,10 @@ function openTab(evt) {
var i, group, groupElements;
// Find the group name from the class of the button that triggered
- group = evt.originalTarget.className.replace(" tablinks", "").replace(" active", "")
+ group = evt.target.className.replace(" tablinks", "").replace(" active", "")
// The active tab is the same as the id of the button that triggered
- activeTab = evt.originalTarget.id
+ activeTab = evt.target.id
// Get all elements with our group
groupElements = document.getElementsByClassName(group);