mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Add support for all
list token in updater-link feature
Using `listkeys=all` will cause all enabled lists to be updated.
This commit is contained in:
parent
4305ea9c0c
commit
14926913f7
1 changed files with 6 additions and 3 deletions
|
@ -2115,9 +2115,12 @@ const onMessage = function(request, sender, callback) {
|
|||
case 'updateLists':
|
||||
const listkeys = request.listkeys.split(',').filter(s => s !== '');
|
||||
if ( listkeys.length === 0 ) { return; }
|
||||
for ( const listkey of listkeys ) {
|
||||
io.purge(listkey);
|
||||
io.remove(`compiled/${listkey}`);
|
||||
if ( listkeys.includes('all') ) {
|
||||
io.purge(/./, 'public_suffix_list.dat');
|
||||
} else {
|
||||
for ( const listkey of listkeys ) {
|
||||
io.purge(listkey);
|
||||
}
|
||||
}
|
||||
µb.scheduleAssetUpdater(0);
|
||||
µb.openNewTab({
|
||||
|
|
Loading…
Reference in a new issue