this fixes one part of #207

This commit is contained in:
gorhill 2014-09-03 20:14:55 -04:00
parent 2d11517940
commit c0aadc1972
1 changed files with 5 additions and 0 deletions

View File

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