mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-09-27 20:48:56 +02:00
Do not draw is no path is defined when drawing
This commit is contained in:
parent
67998c479e
commit
3833b208ea
1 changed files with 2 additions and 0 deletions
|
@ -374,6 +374,8 @@ function initDraw() {
|
|||
|
||||
function render(path) {
|
||||
|
||||
if (!Array.isArray(path)) return
|
||||
|
||||
context.globalCompositeOperation = "source-over";
|
||||
context.clearRect(0, 0, canvas.width, canvas.height);
|
||||
|
||||
|
|
Loading…
Reference in a new issue