diff --git a/src/js/reverselookup-worker.js b/src/js/reverselookup-worker.js index 784d2d3b4..52679ab5b 100644 --- a/src/js/reverselookup-worker.js +++ b/src/js/reverselookup-worker.js @@ -181,14 +181,6 @@ var fromCosmeticFilter = function(details) { found = prefix + selector; } break; - case 1: // id-based - if ( - fargs[2] === selector.slice(1) && - selector.charAt(0) === '#' - ) { - found = prefix + selector; - } - break; case 2: // class-based if ( fargs[1] === selector.slice(1) && @@ -197,11 +189,9 @@ var fromCosmeticFilter = function(details) { found = prefix + selector; } break; - case 3: - if ( - fargs[2] === selector.slice(1) && - selector.charAt(0) === '.' - ) { + case 1: // id-based + case 3: // class-based + if ( fargs[2] === selector ) { found = prefix + selector; } break;