Raymond Hill 2018-12-06 08:50:13 -05:00
parent 15140e3aa7
commit ed265e5f68
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 3 deletions

View File

@ -760,15 +760,14 @@ var filterToDOMInterface = (function() {
var fromPlainCosmeticFilter = function(filter) {
let elems;
try {
elems = document.querySelectorAll(
filter + ':not(#' + pickerRoot.id + ')'
);
elems = document.querySelectorAll(filter);
}
catch (e) {
return;
}
const out = [];
for ( const elem of elems ) {
if ( elem === pickerRoot ) { continue; }
out.push({ type: 'cosmetic', elem });
}
return out;