Skip to content

Commit

Permalink
fix: use frameId to also execute code in iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayrus committed Oct 24, 2020
1 parent 1f94ca2 commit 7a19956
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extension/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ function injectContentScript(details) {
}

let injectDetails = {
file: "/scrambler.js"
file: "/scrambler.js",
frameId: details.frameId
};

browser.tabs.executeScript(details.tabId, injectDetails);
Expand Down

0 comments on commit 7a19956

Please sign in to comment.