mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 12:55:55 +00:00
4.75.1
* Fixed: Bug in the sidebar processing code that may log errors when combined with other add-ons. * API Changed: Improve messaging for manifest v3 extension mode.
This commit is contained in:
parent
431fa8f3a3
commit
5c06461a0e
4 changed files with 8 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "frankerfacez",
|
||||
"author": "Dan Salvato LLC",
|
||||
"version": "4.75.0",
|
||||
"version": "4.75.1",
|
||||
"description": "FrankerFaceZ is a Twitch enhancement suite.",
|
||||
"private": true,
|
||||
"license": "Apache-2.0",
|
||||
|
|
|
@ -29,20 +29,16 @@
|
|||
|
||||
if (evt.data && evt.data.type === 'ffz_to_ext')
|
||||
browser.runtime.sendMessage(evt.data.data, resp => {
|
||||
if (resp)
|
||||
window.postMessage({
|
||||
type: 'ffz_from_ext',
|
||||
data: resp
|
||||
}, '*');
|
||||
if (resp?.type === 'ffz_to_page')
|
||||
window.postMessage(resp.data, '*');
|
||||
});
|
||||
});
|
||||
|
||||
browser.runtime.onMessage.addListener((msg, sender) => {
|
||||
window.postMessage({
|
||||
type: 'ffz_from_ext',
|
||||
data: msg
|
||||
}, '*');
|
||||
return true;
|
||||
if (msg?.type === 'ffz_to_page')
|
||||
window.postMessage(msg.data, '*');
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
// Now, inject our script into the page context.
|
||||
|
|
|
@ -385,7 +385,7 @@ export default class Layout extends Module {
|
|||
else {
|
||||
if ( ! should_hide ) {
|
||||
const regexes = this.settings.get('__filter:directory.block-users');
|
||||
const login = props.userLogin;
|
||||
const login = props?.userLogin;
|
||||
if ( regexes && login ) {
|
||||
if ( regexes[0] )
|
||||
regexes[0].lastIndex = -1;
|
||||
|
|
|
@ -27,5 +27,4 @@ browser.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
|||
else if ( type === 'ffz_injecting' )
|
||||
browser.action.enable(sender.tab.id);
|
||||
|
||||
console.log('got message', message, sender);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue