From 4ef3fbd6935a6abcbafad8ceddef5dbbb703e0d5 Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Sat, 12 Jun 2021 16:41:12 +0700 Subject: [PATCH] Add support for injection in iframes --- lib/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/background.js b/lib/background.js index e24283d..12e41c2 100644 --- a/lib/background.js +++ b/lib/background.js @@ -10,7 +10,7 @@ const isChrome = typeof chrome !== 'undefined' } catch {} if (file) { const details = { - frameId: sender.tab.frameId, + frameId: sender.frameId, file, } const callback = () => sendResponse()