diff --git a/wb/wb-client.js b/wb/wb-client.js index ba29c79..411b170 100644 --- a/wb/wb-client.js +++ b/wb/wb-client.js @@ -53,7 +53,7 @@ function setColor(beginPath){ if(beginPath) { ctx.beginPath(); } - var color = document.getElementById("color").value; + var color = "#" + document.getElementById("color").value; ctx.strokeStyle = color; document.getElementById("message").innerHTML = "color changed to " + color; }