fix errors on export where document body wasn't automatically created

This commit is contained in:
lyninx 2017-01-07 00:06:42 -05:00
parent 2332f17934
commit 402215ec7d

View File

@ -211,6 +211,7 @@ function Dotgrid(width,height,grid_x,grid_y,block_x,block_y,thickness = 3,lineca
{
var w = window.open('about:blank');
w.document.write("<title>Export</title>");
w.document.write("<body></body>");
w.document.body.innerText += vector_element.outerHTML;
}