mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Fall back to console if log info can't be relayed to logger
This commit is contained in:
parent
b0122bb9fc
commit
28e1424058
@ -187,6 +187,8 @@ const onScriptletMessageInjector = (( ) => {
|
|||||||
case 'object':
|
case 'object':
|
||||||
if ( self.vAPI && self.vAPI.messaging ) {
|
if ( self.vAPI && self.vAPI.messaging ) {
|
||||||
self.vAPI.messaging.send('contentscript', msg);
|
self.vAPI.messaging.send('contentscript', msg);
|
||||||
|
} else {
|
||||||
|
console.log(`[uBO][${msg.type}]${msg.text}`);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user