mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-23 10:52:43 +01:00
Fix regression in cloud storage import of "Filter lists" pane
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2721
This commit is contained in:
parent
083a318090
commit
80b3f3c3c0
@ -836,14 +836,14 @@ self.cloud.onPull = function fromCloudData(data, append) {
|
||||
selectedSet.delete(listkey);
|
||||
}
|
||||
if ( selectedSet.size !== 0 ) {
|
||||
const textarea = qs$('#lists .liEntry[data-role="import"] textarea');
|
||||
const textarea = qs$('#lists .listEntry[data-role="import"] textarea');
|
||||
const lines = append
|
||||
? textarea.value.split(/[\n\r]+/)
|
||||
: [];
|
||||
lines.push(...selectedSet);
|
||||
if ( lines.length !== 0 ) { lines.push(''); }
|
||||
textarea.value = lines.join('\n');
|
||||
dom.cl.toggle('#lists .liEntry[data-role="import"]', 'expanded', textarea.value !== '');
|
||||
dom.cl.toggle('#lists .listEntry[data-role="import"]', 'expanded', textarea.value !== '');
|
||||
}
|
||||
|
||||
renderWidgets();
|
||||
|
Loading…
Reference in New Issue
Block a user