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:
parent
52598fbe55
commit
9dfd65a249
1 changed files with 2 additions and 2 deletions
|
@ -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, '*');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue