manto07m пре 3 година
родитељ
комит
49433ece70
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      script/js/user-image.js

+ 1 - 2
script/js/user-image.js

@@ -9,8 +9,7 @@ function addUserImage(name,role) {
     ctx.fillStyle = "white";
     ctx.font = "30px Arial";
     var text = name;
-    ctx.fillText(text, 5, 30);
-    var img = document.createElement("img");
+    ctx.fillText(text, 5, 30);    
     $(".img-circle").attr("src", canvas.toDataURL());
     $(".img-circle").css("background-color",roleColors[role])
 }