Fixed canvas-view being a div and not a canvas

This commit is contained in:
Nicola 2022-10-06 10:16:19 +02:00
parent dfa3742003
commit 7672a034c8

View File

@ -2,7 +2,7 @@ class File {
// Canvas, canvas state
canvasSize = [];
zoom = 7;
canvasView = document.getElementById("canvas-view") ?? document.createElement("canvas");
canvasView = document.getElementById("canvas-view") ?? document.createElement("div");
inited = false;
// Layers