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