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
1 changed files with 2 additions and 0 deletions

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