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:
parent
ec5f7e0bd9
commit
4a55f7a941
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue