Skip to content

Commit

Permalink
Scale favicons depending on screen pixel ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
flaksp committed Oct 25, 2019
1 parent 730a769 commit 2754340
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "__MSG_app_name__",
"version": "1.7.0",
"version": "1.8.0",
"author": "Petr Flaks",
"homepage_url": "https://github.com/neluzhin/camellia",
"description": "__MSG_app_description__",
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/newtab.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ Promise.all([
}

return {
'background-image': 'url(chrome://favicon/' + this.bookmark.url + ')'
'background-image': `url(chrome://favicon/size/16@${window.devicePixelRatio}x/${this.bookmark.url})`
};
},
getDataToggle: function () {
Expand Down

0 comments on commit 2754340

Please sign in to comment.