From b0887b14d6ba038b851d3174b6285057f788d7a7 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Tue, 8 Aug 2023 17:20:08 +0400 Subject: [PATCH] fix: border layer on/off detection on load --- index.html | 2 +- modules/io/load.js | 2 +- versioning.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 18e67866..44406fde 100644 --- a/index.html +++ b/index.html @@ -8005,7 +8005,7 @@ - + diff --git a/modules/io/load.js b/modules/io/load.js index 037675d7..969cd80b 100644 --- a/modules/io/load.js +++ b/modules/io/load.js @@ -408,7 +408,7 @@ async function parseLoadedData(data) { if (hasChildren(statesBody)) turnOn("toggleStates"); if (hasChildren(provs)) turnOn("toggleProvinces"); if (hasChildren(zones) && notHidden(zones)) turnOn("toggleZones"); - if (notHidden(borders) && hasChild(compass, "use")) turnOn("toggleBorders"); + if (notHidden(borders) && hasChild(borders, "path")) turnOn("toggleBorders"); if (notHidden(routes) && hasChild(routes, "path")) turnOn("toggleRoutes"); if (hasChildren(temperature)) turnOn("toggleTemp"); if (hasChild(population, "line")) turnOn("togglePopulation"); diff --git a/versioning.js b/versioning.js index b1eed58b..cb55079b 100644 --- a/versioning.js +++ b/versioning.js @@ -1,7 +1,7 @@ "use strict"; // version and caching control -const version = "1.91.02"; // generator version, update each time +const version = "1.91.03"; // generator version, update each time { document.title += " v" + version;