mirror of https://github.com/gorhill/uBlock.git
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':
|
||||
if ( self.vAPI && self.vAPI.messaging ) {
|
||||
self.vAPI.messaging.send('contentscript', msg);
|
||||
} else {
|
||||
console.log(`[uBO][${msg.type}]${msg.text}`);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue