Skip to content

Commit

Permalink
Merge pull request #124 in EXTENSIONS/browser-extension from feature/…
Browse files Browse the repository at this point in the history
…issues/917-2 to master

* commit 'c58f6e9f6195c51b4310f771f4d8670c0eb624a0':
  #917 filter directives
  #917 filter directives
  • Loading branch information
Mizzick committed Apr 23, 2018
2 parents 0e463d3 + c58f6e9 commit 5d057e4
Show file tree
Hide file tree
Showing 7 changed files with 413 additions and 54 deletions.
1 change: 1 addition & 0 deletions Extension/browser/chrome/background.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<script type="text/javascript" src="lib/libs/deferred.min.js"></script>
<script type="text/javascript" src="lib/utils/sha256.patched.js"></script>
<script type="text/javascript" src="lib/utils/punycode.js"></script>
<script type="text/javascript" src="lib/libs/filter-downloader.js"></script>

<!--Adguard Global and preferences-->
<script type="text/javascript" src="lib/adguard.js"></script>
Expand Down
1 change: 1 addition & 0 deletions Extension/browser/firefox/background.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<script type="text/javascript" src="lib/libs/deferred.min.js"></script>
<script type="text/javascript" src="lib/utils/sha256.patched.js"></script>
<script type="text/javascript" src="lib/utils/punycode.js"></script>
<script type="text/javascript" src="lib/libs/filter-downloader.js"></script>

<!--Adguard Global and preferences-->
<script type="text/javascript" src="lib/adguard.js"></script>
Expand Down
1 change: 1 addition & 0 deletions Extension/browser/firefox_webext/background.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<script type="text/javascript" src="lib/libs/deferred.min.js"></script>
<script type="text/javascript" src="lib/utils/sha256.patched.js"></script>
<script type="text/javascript" src="lib/utils/punycode.js"></script>
<script type="text/javascript" src="lib/libs/filter-downloader.js"></script>

<!--Adguard Global and preferences-->
<script type="text/javascript" src="lib/adguard.js"></script>
Expand Down
1 change: 1 addition & 0 deletions Extension/browser/safari/background.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<script type="text/javascript" src="lib/libs/deferred.min.js"></script>
<script type="text/javascript" src="lib/utils/sha256.patched.js"></script>
<script type="text/javascript" src="lib/utils/punycode.js"></script>
<script type="text/javascript" src="lib/libs/filter-downloader.js"></script>

<!--Adguard Global and preferences-->
<script type="text/javascript" src="lib/adguard.js"></script>
Expand Down
6 changes: 3 additions & 3 deletions Extension/lib/filter/antibanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -1004,8 +1004,8 @@ adguard.antiBannerService = (function (adguard) {
callback(true);
};

var errorCallback = function (request, cause) {
adguard.console.error("Error retrieved response from server for filter {0}, cause: {1} {2}", filter.filterId, request.statusText, cause || "");
var errorCallback = function (cause) {
adguard.console.error("Error retrieved response from server for filter {0}, cause: {1}", filter.filterId, cause || "");
delete filter._isDownloading;
adguard.listeners.notifyListeners(adguard.listeners.ERROR_DOWNLOAD_FILTER, filter);
callback(false);
Expand Down Expand Up @@ -1606,7 +1606,7 @@ adguard.filters = (function (adguard) {
var rules = adguard.userrules.addRules(rulesText);
loadCallback(rules.length);
}, function (request, cause) {
adguard.console.error("Error download subscription by url {0}, cause: {1} {2}", subscriptionUrl, request.statusText, cause || "");
adguard.console.error("Error download subscription by url {0}, cause: {1}", subscriptionUrl, cause || "");
});
}
};
Expand Down
Loading

0 comments on commit 5d057e4

Please sign in to comment.