Merge pull request #2 from lyninx/master

fix errors on export where document body wasn't automatically created
This commit is contained in:
Лu Лinveгa 2017-01-07 08:39:01 -07:00 committed by GitHub
commit 42c043afc0

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;
}