aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackademix <giorgio@maone.net>2018-09-05 19:11:41 +0200
committerhackademix <giorgio@maone.net>2018-09-05 19:11:41 +0200
commit762a3d2dda175d70b9ec6dfb5ea9d92b3702ae2f (patch)
tree61b83f102200efb458be30aab68761fc80d92b93
parente5bf32c8866a4fb9d10d55689c1e3759f55992e3 (diff)
Fix typo in intrinsec events loop.
-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) {