mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
save.js fix - options are not defined
This commit is contained in:
parent
edf728a12e
commit
7b506fc6d8
2 changed files with 4 additions and 8 deletions
|
|
@ -138,7 +138,8 @@ async function saveTiles() {
|
|||
}
|
||||
|
||||
// parse map svg to object url
|
||||
async function getMapURL(type, {debug = false, globe = false, noLabels = false, noWater = false}) {
|
||||
async function getMapURL(type, options = {}) {
|
||||
const {debug = false, globe = false, noLabels = false, noWater = false} = options;
|
||||
const cloneEl = document.getElementById("map").cloneNode(true); // clone svg
|
||||
cloneEl.id = "fantasyMap";
|
||||
document.body.appendChild(cloneEl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue