mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix tile save bug
This commit is contained in:
parent
77f371e28f
commit
ef55f5a442
3 changed files with 35 additions and 34 deletions
|
|
@ -144,7 +144,7 @@ async function getMapURL(type, options = {}) {
|
|||
cloneEl.id = "fantasyMap";
|
||||
document.body.appendChild(cloneEl);
|
||||
const clone = d3.select(cloneEl);
|
||||
if (debug) clone.select("#debug").remove();
|
||||
if (!debug) clone.select("#debug").remove();
|
||||
|
||||
const cloneDefs = cloneEl.getElementsByTagName("defs")[0];
|
||||
const svgDefs = document.getElementById("defElements");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue