Bladeren bron

修改小東西

manto07m 3 jaren geleden
bovenliggende
commit
49433ece70
1 gewijzigde bestanden met toevoegingen van 1 en 2 verwijderingen
  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])
 }