Skip to content
This repository has been archived by the owner on Dec 3, 2020. It is now read-only.

Commit

Permalink
Fix #243: Serve vendor favicons locally instead of remotely.
Browse files Browse the repository at this point in the history
Tracking protection is blocking the eBay favicon from being loaded in private
browsing mode, but serving it locally instead of fetching it from the internet
avoids being blocked.
  • Loading branch information
Michael Kelly committed Nov 28, 2018
1 parent 4f0fe88 commit 4756acd
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
Binary file added src/img/favicons/amazon.ico
Binary file not shown.
Binary file added src/img/favicons/bestbuy.ico
Binary file not shown.
Binary file added src/img/favicons/ebay.ico
Binary file not shown.
Binary file added src/img/favicons/homedepot.ico
Binary file not shown.
Binary file added src/img/favicons/walmart.ico
Binary file not shown.
10 changes: 5 additions & 5 deletions src/state/vendors.js
Expand Up @@ -23,27 +23,27 @@ const VENDORS = [
{
name: 'Amazon',
hostnames: ['amazon.com', 'www.amazon.com', 'smile.amazon.com'],
faviconUrl: 'https://www.amazon.com/favicon.ico',
faviconUrl: browser.runtime.getURL('/img/favicons/amazon.ico'),
},
{
name: 'Best Buy',
hostnames: ['bestbuy.com', 'www.bestbuy.com'],
faviconUrl: 'https://www.bestbuy.com/favicon.ico',
faviconUrl: browser.runtime.getURL('/img/favicons/bestbuy.ico'),
},
{
name: 'eBay',
hostnames: ['ebay.com', 'www.ebay.com'],
faviconUrl: 'https://www.ebay.com/favicon.ico',
faviconUrl: browser.runtime.getURL('/img/favicons/ebay.ico'),
},
{
name: 'The Home Depot',
hostnames: ['homedepot.com', 'www.homedepot.com'],
faviconUrl: 'https://www.homedepot.com/favicon.ico',
faviconUrl: browser.runtime.getURL('/img/favicons/homedepot.ico'),
},
{
name: 'Walmart',
hostnames: ['walmart.com', 'www.walmart.com'],
faviconUrl: 'https://www.walmart.com/favicon.ico',
faviconUrl: browser.runtime.getURL('/img/favicons/walmart.ico'),
},
{
name: 'mkelly Test',
Expand Down
1 change: 1 addition & 0 deletions webpack/common.config.js
Expand Up @@ -65,6 +65,7 @@ module.exports = {
// Static files
{from: '**/*.svg'},
{from: '**/*.png'},
{from: '**/*.ico'},
{from: '**/*.html'},

// Experimental APIs, which are not bundled
Expand Down

0 comments on commit 4756acd

Please sign in to comment.