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', 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:

View File

@ -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 (_) {