Browse Source

Fix favicon

pull/1431/head
Timothée Jaussoin 8 months ago
parent
commit
105080c4a5
  1. 7
      public/scripts/movim_favicon.js

7
public/scripts/movim_favicon.js

@ -36,9 +36,10 @@ var MovimFavicon = {
var b = y + h;
ctx.beginPath();
ctx.fillStyle = counterTab2 > 0
? getComputedStyle(document.body).getPropertyValue('--p-red')
: 'rgb(' + getComputedStyle(document.body).getPropertyValue('--movim-accent') + ')';
ctx.fillStyle = getComputedStyle(document.body).getPropertyValue(counterTab2 > 0
? '--p-red'
: '--movim-accent'
);
ctx.moveTo(x + radius, y);
ctx.lineTo(r - radius, y);
ctx.quadraticCurveTo(r, y, r, y + radius);

Loading…
Cancel
Save