Commit a552ab76 authored by Eben Blaisdell's avatar Eben Blaisdell

loadbar fix

parent 58589d59
......@@ -28,7 +28,7 @@ socket.on('update', function (data) {
ctx.stroke();
}
console.log($("#turnbar").css("width"));
if(data.turn % turnbarStep == 0){
if($("#turnbar").css("width")=="0px" || data.turn % turnbarStep == 0){
$("#turnbar").css("width",(100*data.turn/turnLimit).toString()+"%");
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment