1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-09 12:22:33 +01:00

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; const rules = popupData.firewallRules;
for ( const key in rules ) { for ( const key in rules ) {
const rule = rules[key]; const rule = rules[key];
if ( rule === null ) { continue; } if ( rule === undefined ) { continue; }
hasher.push( hasher.push(rule);
rule.src + ' ' +
rule.des + ' ' +
rule.type + ' ' +
rule.action
);
} }
hasher.sort(); hasher.sort();
hasher.push(uDom('body').hasClass('off')); hasher.push(uDom('body').hasClass('off'));