save.js fix - options are not defined

This commit is contained in:
Azgaar 2021-07-18 00:55:33 +03:00
parent edf728a12e
commit 7b506fc6d8
2 changed files with 4 additions and 8 deletions

View file

@ -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);