Fix restore backup feature

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1282
This commit is contained in:
Raymond Hill 2020-10-06 21:02:51 -04:00
parent e2e51c4df6
commit 04b11b4311
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 2 deletions

View File

@ -938,8 +938,8 @@ const restoreUserData = async function(request) {
// Discard unknown setting or setting with default value.
for ( const key in hiddenSettings ) {
if (
this.hiddenSettingsDefault.hasOwnProperty(key) === false ||
hiddenSettings[key] === this.hiddenSettingsDefault[key]
µb.hiddenSettingsDefault.hasOwnProperty(key) === false ||
hiddenSettings[key] === µb.hiddenSettingsDefault[key]
) {
delete hiddenSettings[key];
}