Skip to content

Commit

Permalink
fix: Handle retina devices in the thumbnails! 🌱 🌷
Browse files Browse the repository at this point in the history
Merge pull request #537 from bwinton/retina-thumbs
  • Loading branch information
ericawright authored Aug 17, 2016
2 parents f82ae1c + a40650d commit d41fb4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vertical-tabbrowser.xml
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,9 @@

<implementation>
<constructor><![CDATA[
const canvas = document.getAnonymousElementByAttribute(this, 'anonid', 'tab-meta-image');
canvas.width *= window.devicePixelRatio;
canvas.height *= window.devicePixelRatio;
this.refreshThumbAndLabel();
]]></constructor>

Expand Down

0 comments on commit d41fb4b

Please sign in to comment.