summaryrefslogtreecommitdiffstats
path: root/toolkit/components/extensions/parent/ext-scripting.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/extensions/parent/ext-scripting.js')
-rw-r--r--toolkit/components/extensions/parent/ext-scripting.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/toolkit/components/extensions/parent/ext-scripting.js b/toolkit/components/extensions/parent/ext-scripting.js
index baa05f3aad..1563ec1e90 100644
--- a/toolkit/components/extensions/parent/ext-scripting.js
+++ b/toolkit/components/extensions/parent/ext-scripting.js
@@ -250,10 +250,8 @@ this.scripting = class extends ExtensionAPI {
const scriptIdsMap = gScriptIdsMap.get(extension);
return Array.from(scriptIdsMap.entries())
- .filter(
- ([id, scriptId]) => !details?.ids || details.ids.includes(id)
- )
- .map(([id, scriptId]) => {
+ .filter(([id]) => !details?.ids || details.ids.includes(id))
+ .map(([, scriptId]) => {
const options = extension.registeredContentScripts.get(scriptId);
return makePublicContentScript(extension, options);