Skip to content

Commit

Permalink
Add favicon.ico filter
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecBlance committed Apr 13, 2020
1 parent 679d9dd commit a570903
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ function recordHttpResponse(response) {
anchor.href = response.url;
hostname = anchor.hostname;
if (hostname == "s3.amazonaws.com"){
hostname += "/"+anchor.pathname.split("/")[1];
var path = anchor.pathname.split("/")[1];
if (path=="favicon.ico"){
hostname = bucket[0];
} else {
hostname += "/"+path;
}
}
if (!bucket.includes(hostname)) {
addNumber();
Expand Down

0 comments on commit a570903

Please sign in to comment.