1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-02 00:42:45 +01:00
This commit is contained in:
gorhill 2015-08-31 18:43:40 -04:00
parent 8adf1c4616
commit 05ce6711e8

View File

@ -927,7 +927,11 @@
} }
} }
newListKey = this.oldListToNewListMap[oldListKey]; newListKey = this.oldListToNewListMap[oldListKey];
if ( newListKey !== '' ) { // https://github.com/gorhill/uBlock/issues/668
// https://github.com/gorhill/uBlock/issues/669
// Beware: an entry for the new list key may already exists. If it is
// the case, leave it as is.
if ( newListKey !== '' && filterLists.hasOwnProperty(newListKey) === false ) {
listEntry = filterLists[listKey]; listEntry = filterLists[listKey];
listEntry.homeURL = undefined; listEntry.homeURL = undefined;
filterLists[newListKey] = listEntry; filterLists[newListKey] = listEntry;