Skip to content

Commit

Permalink
Pull request #1134: fix:AG-11232 convert rules on update
Browse files Browse the repository at this point in the history
Merge in EXTENSIONS/browser-extension from fix/AG-11232 to master

Squashed commit of the following:

commit 893476d
Author: Dimitry Kolyshev <dkolyshev@adguard.com>
Date:   Sun Dec 5 14:16:08 2021 +0200

    fix:AG-11232 convert rules on update
  • Loading branch information
Mizzick committed Dec 7, 2021
1 parent 2ec470f commit 096cab0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Extension/src/background/update-service.js
Expand Up @@ -160,13 +160,15 @@ export const applicationUpdateService = (function () {
const onUpdate = async function (runInfo) {
const methods = [];

log.info(`The extension was updated from ${runInfo.prevVersion}`);

if (browserUtils.isGreaterVersion('3.0.3', runInfo.prevVersion)) {
methods.push(handleUndefinedGroupStatuses);
}
if (browserUtils.isGreaterVersion('3.3.5', runInfo.prevVersion)) {
methods.push(handleDefaultUpdatePeriodSetting);
}
if (browserUtils.isGreaterVersion('3.5.6', runInfo.prevVersion)) {
if (browserUtils.isGreaterVersion('4.0.67', runInfo.prevVersion)) {
methods.push(onUpdateRuleConverter);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "browser-extension",
"version": "4.0.65",
"version": "4.0.67",
"description": "AdGuard Extension",
"scripts": {
"dev": "BUILD_ENV=dev babel-node tools/bundle.js",
Expand Down

0 comments on commit 096cab0

Please sign in to comment.