Upsize svg identicons
The chrome.notifications api renders iconUrls at full bleed, as opposed to the Web Notifications api, which adds padding. This was causing our identicons to look a bit over stretched. Fixed by rendering them a bit larger and with some padding. // FREEBIE
This commit is contained in:
parent
1a30d003f5
commit
e80fa187ba
2 changed files with 4 additions and 4 deletions
|
@ -24,7 +24,7 @@
|
|||
var img = document.createElement('img');
|
||||
img.onload = function () {
|
||||
var canvas = loadImage.scale(img, {
|
||||
canvas: true, maxWidth: 44, maxHeight: 44
|
||||
canvas: true, maxWidth: 100, maxHeight: 100
|
||||
});
|
||||
var ctx = canvas.getContext('2d');
|
||||
ctx.drawImage(img, 0, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue