1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

eslint src/entry_ext.js

* fix mistyped variable `connections` in handleMessage
* unused `sender` variable in message listener
This commit is contained in:
lemonslut 2025-06-07 16:20:35 -06:00
parent 52598fbe55
commit 9dfd65a249
No known key found for this signature in database

View file

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