1
0
Fork 0
mirror of https://github.com/sbrl/Nibriboard.git synced 2018-01-10 21:33:49 +00:00

[client] Only render the pencil if it actually exists

This commit is contained in:
Starbeamrainbowlabs 2017-04-16 16:18:45 +01:00
parent ec5f7e0bd9
commit 4a55f7a941

View file

@ -178,7 +178,9 @@ class BoardWindow extends EventEmitter
context.clearRect(0, 0, canvas.width, canvas.height);
this.renderOthers(canvas, context);
this.pencil.render(canvas, context);
// Render the currently active line
if(typeof this.pencil !== "undefined")
this.pencil.render(canvas, context);
}
renderOthers(canvas, context)