mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-22 02:12:44 +01:00
No need for redundant "safe"
This commit is contained in:
parent
dd05d1a090
commit
cc062d3a8a
@ -49,11 +49,10 @@ function safeSelf() {
|
||||
'RegExp': self.RegExp,
|
||||
'RegExp_test': self.RegExp.prototype.test,
|
||||
'RegExp_exec': self.RegExp.prototype.exec,
|
||||
'safeLog': console.log.bind(console),
|
||||
'log': console.log.bind(console),
|
||||
'uboLog': function(msg) {
|
||||
if ( msg !== '' ) {
|
||||
this.safeLog(`[uBO] ${msg}`);
|
||||
}
|
||||
if ( msg === '' ) { return; }
|
||||
this.log(`[uBO] ${msg}`);
|
||||
},
|
||||
};
|
||||
scriptletGlobals.set('safeSelf', safe);
|
||||
|
Loading…
Reference in New Issue
Block a user