Fix improper hashing of rules in classic popup panel

Related feedback:
- https://www.reddit.com/r/uBlockOrigin/comments/n5vaih/
This commit is contained in:
Raymond Hill 2021-05-09 11:41:23 -04:00
parent 0718d816e1
commit 1f8a67f40e
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -154,13 +154,8 @@ const hashFromPopupData = function(reset) {
const rules = popupData.firewallRules;
for ( const key in rules ) {
const rule = rules[key];
if ( rule === null ) { continue; }
hasher.push(
rule.src + ' ' +
rule.des + ' ' +
rule.type + ' ' +
rule.action
);
if ( rule === undefined ) { continue; }
hasher.push(rule);
}
hasher.sort();
hasher.push(uDom('body').hasClass('off'));