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:
Raymond Hill 2023-10-30 10:47:38 -04:00
parent b061db229e
commit 4fa92f930e
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 2 additions and 1 deletions

View File

@ -2072,7 +2072,7 @@ const onMessage = function(request, sender, callback) {
url: 'dashboard.html#3p-filters.html',
select: true,
});
io.updateStart({ delay: 100 });
io.updateStart({ delay: 100, auto: request.softUpdate });
break;
default:

View File

@ -55,6 +55,7 @@ function updateStockLists(target) {
vAPI.messaging.send('scriptlets', {
what: 'updateLists',
listkeys,
softUpdate: updateURL.searchParams.get('soft') && true || false,
});
return true;
} catch (_) {