From 762a3d2dda175d70b9ec6dfb5ea9d92b3702ae2f Mon Sep 17 00:00:00 2001 From: hackademix Date: Wed, 5 Sep 2018 19:11:41 +0200 Subject: Fix typo in intrinsec events loop. --- main_background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3