mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Support soft-updating through update links
Where "soft-updating" means updating from CDNs, and "hard-updating" means updating from `ublockorigin.github.io/uAssets`.
This commit is contained in:
parent
b061db229e
commit
4fa92f930e
@ -2072,7 +2072,7 @@ const onMessage = function(request, sender, callback) {
|
|||||||
url: 'dashboard.html#3p-filters.html',
|
url: 'dashboard.html#3p-filters.html',
|
||||||
select: true,
|
select: true,
|
||||||
});
|
});
|
||||||
io.updateStart({ delay: 100 });
|
io.updateStart({ delay: 100, auto: request.softUpdate });
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -55,6 +55,7 @@ function updateStockLists(target) {
|
|||||||
vAPI.messaging.send('scriptlets', {
|
vAPI.messaging.send('scriptlets', {
|
||||||
what: 'updateLists',
|
what: 'updateLists',
|
||||||
listkeys,
|
listkeys,
|
||||||
|
softUpdate: updateURL.searchParams.get('soft') && true || false,
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
|
Loading…
Reference in New Issue
Block a user