Skip to content

Commit

Permalink
Merge pull request #7 in EXTENSIONS/browser-extension from feature/is…
Browse files Browse the repository at this point in the history
…sues/665-domain-modifier to master

Squashed commit of the following:

commit a435e34d4df942805ba42a1af8cdbb124f84ff8b
Author: a.tropnikov <atropnikov@adguard.com>
Date:   Mon Aug 28 12:54:23 2017 +0300

    Fixed test

commit 86dbdfe8d45892cd927bdbe46f3ff2f01940536f
Author: a.tropnikov <atropnikov@adguard.com>
Date:   Mon Aug 28 12:46:49 2017 +0300

    Fixed crop www. in $domain modifier
  • Loading branch information
Aleksandr Tropnikov committed Aug 29, 2017
1 parent a1c27f0 commit 3da5a9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Extension/lib/filter/rules/base-filter-rule.js
Expand Up @@ -63,7 +63,7 @@
if (permittedDomains === null) {
permittedDomains = [];
}
permittedDomains.push(adguard.utils.url.getCroppedDomainName(domainName));
permittedDomains.push(domainName);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Extension/tests/css-filter/test-css-filter.js
Expand Up @@ -611,7 +611,7 @@ QUnit.test("Css Filter WWW Test", function (assert) {
var rule = new adguard.rules.CssFilterRule(ruleText);

assert.ok(rule != null);
assert.equal(rule.permittedDomain, 'google.com');
assert.equal(rule.permittedDomain, 'www.google.com');
});

QUnit.test("Permitted/Restricted domains Test", function (assert) {
Expand Down

0 comments on commit 3da5a9b

Please sign in to comment.