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, '*');