Skip to content

Commit

Permalink
Support soft-updating through update links
Browse files Browse the repository at this point in the history
Where "soft-updating" means updating from CDNs, and "hard-updating"
means updating from `ublockorigin.github.io/uAssets`.
  • Loading branch information
gorhill committed Oct 30, 2023
1 parent b061db2 commit 4fa92f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/messaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions src/js/scriptlets/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function updateStockLists(target) {
vAPI.messaging.send('scriptlets', {
what: 'updateLists',
listkeys,
softUpdate: updateURL.searchParams.get('soft') && true || false,
});
return true;
} catch (_) {
Expand Down

0 comments on commit 4fa92f9

Please sign in to comment.