mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 15:32:28 +02:00
code review: element picker
This commit is contained in:
parent
58ebcd21c3
commit
4aec3404c4
@ -248,7 +248,7 @@ var netFilterFromUnion = (function() {
|
|||||||
var from = lastNetFilterUnion;
|
var from = lastNetFilterUnion;
|
||||||
|
|
||||||
// Reset reference filter when dealing with unrelated URLs
|
// Reset reference filter when dealing with unrelated URLs
|
||||||
if ( from === '' && a.host !== lastNetFilterHostname ) {
|
if ( from === '' || a.host !== lastNetFilterHostname ) {
|
||||||
lastNetFilterHostname = a.host;
|
lastNetFilterHostname = a.host;
|
||||||
lastNetFilterUnion = to;
|
lastNetFilterUnion = to;
|
||||||
localMessager.send({
|
localMessager.send({
|
||||||
@ -289,7 +289,7 @@ var netFilterFromUnion = (function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
from = fromTokens.join('').replace(/\*\*+/g, '*');
|
from = fromTokens.join('').replace(/\*\*+/g, '*');
|
||||||
if ( from !== '/*' ) {
|
if ( from !== '/*' && from !== to ) {
|
||||||
out.push('||' + lastNetFilterHostname + from);
|
out.push('||' + lastNetFilterHostname + from);
|
||||||
} else {
|
} else {
|
||||||
from = to;
|
from = to;
|
||||||
|
Loading…
Reference in New Issue
Block a user