From 04b11b431146926718d5ab4308601bba4ea2ab6d Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 6 Oct 2020 21:02:51 -0400 Subject: [PATCH] Fix restore backup feature Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1282 --- src/js/messaging.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/messaging.js b/src/js/messaging.js index d6327e6a8..89d1b2c96 100644 --- a/src/js/messaging.js +++ b/src/js/messaging.js @@ -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]; }