mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix sticky imported list after removal
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1803
This commit is contained in:
parent
f55a53a890
commit
4efa6be96b
1 changed files with 9 additions and 6 deletions
|
|
@ -146,17 +146,20 @@ import {
|
|||
};
|
||||
|
||||
µb.saveUserSettings = function() {
|
||||
// `externalLists` will be deprecated in some future, it is kept around
|
||||
// for forward compatibility purpose, and should reflect the content of
|
||||
// `importedLists`.
|
||||
//
|
||||
// https://github.com/uBlockOrigin/uBlock-issues/issues/1803
|
||||
// Do this before computing modified settings.
|
||||
this.userSettings.externalLists =
|
||||
this.userSettings.importedLists.join('\n');
|
||||
|
||||
const toSave = this.getModifiedSettings(
|
||||
this.userSettings,
|
||||
this.userSettingsDefault
|
||||
);
|
||||
|
||||
// `externalLists` will be deprecated in some future, it is kept around
|
||||
// for forward compatibility purpose, and should reflect the content of
|
||||
// `importedLists`.
|
||||
this.userSettings.externalLists =
|
||||
this.userSettings.importedLists.join('\n');
|
||||
|
||||
const toRemove = [];
|
||||
for ( const key in this.userSettings ) {
|
||||
if ( this.userSettings.hasOwnProperty(key) === false ) { continue; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue