aboutsummaryrefslogtreecommitdiff
path: root/main_background.js
diff options
context:
space:
mode:
Diffstat (limited to 'main_background.js')
-rw-r--r--main_background.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/main_background.js b/main_background.js
index 8d732e4..08007f8 100644
--- a/main_background.js
+++ b/main_background.js
@@ -1058,7 +1058,7 @@ async function editHtml(html, documentUrl, tabId, frameId, whitelisted){
let attributes = element.attributes;
for (let event of intrinsic_events) {
if (event in attributes) {
- let attr = attributes[events];
+ let attr = attributes[event];
try {
let edited = await get_script(attr.value, `Intrinsic event [${event}]`);
if (edited) {