From 9dfd65a2490f81d6c90b51ca788b81a64076718b Mon Sep 17 00:00:00 2001 From: lemonslut Date: Sat, 7 Jun 2025 16:20:35 -0600 Subject: [PATCH] eslint src/entry_ext.js * fix mistyped variable `connections` in handleMessage * unused `sender` variable in message listener --- src/entry_ext.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entry_ext.js b/src/entry_ext.js index 4e401c0c..2f53b534 100644 --- a/src/entry_ext.js +++ b/src/entry_ext.js @@ -64,7 +64,7 @@ } function handleMessage(id, payload) { - const port = connection.get(id); + const port = connections.get(id); if ( port ) { port.postMessage(payload); } @@ -88,7 +88,7 @@ // Let the extension send messages to the page directly. - browser.runtime.onMessage.addListener((msg, sender) => { + browser.runtime.onMessage.addListener(msg => { if (msg?.type === 'ffz_to_page') window.postMessage(msg.data, '*');