From 1eac118347aac5e0f7196519938d7905f053dc17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozman?= <tomas.hozman@pm.me> Date: Mon, 5 Sep 2022 21:46:32 +0200 Subject: [PATCH] square avatar --- VERSION | 2 +- generator/static/js/avatar/template.js | 21 --------------------- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/VERSION b/VERSION index c514bd85..be05bba9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.4.6 +1.4.7 diff --git a/generator/static/js/avatar/template.js b/generator/static/js/avatar/template.js index 0ff516da..38cbb5c9 100644 --- a/generator/static/js/avatar/template.js +++ b/generator/static/js/avatar/template.js @@ -375,27 +375,6 @@ class AvatarTemplate { } } - if (/.*Olomouc-(kandidat|volim).*\.png/.test(this.darkIconDefaultSource)) { - this.context.globalCompositeOperation = "destination-in"; - - this.context.beginPath(); - - this.context.arc( - this.canvas.width / 2, - this.canvas.height / 2, - this.canvas.width / 2, - 0, - 2 * Math.PI, - false - ); - - this.context.fill(); - - this.context.closePath(); - - this.context.globalCompositeOperation = "source-over"; - } - this.redrawing = false; } -- GitLab