1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

Fall back to console if log info can't be relayed to logger

This commit is contained in:
Raymond Hill 2024-02-02 09:24:24 -05:00
parent b0122bb9fc
commit 28e1424058
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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;
}