mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
this fixes one part of #207
This commit is contained in:
parent
2d11517940
commit
c0aadc1972
@ -281,6 +281,11 @@ var uBlockMessaging = (function(name){
|
||||
};
|
||||
|
||||
var hideElements = function(selectors) {
|
||||
// https://github.com/gorhill/uBlock/issues/207
|
||||
// Do not call querySelectorAll() using invalid CSS selectors
|
||||
if ( selectors.length === 0 ) {
|
||||
return;
|
||||
}
|
||||
if ( document.body === null ) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user