1
0
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:
gorhill 2014-09-03 20:14:55 -04:00
parent 2d11517940
commit c0aadc1972

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