浏览代码

修改小東西

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])
 }