diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-17 23:20:45 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-17 23:20:45 +0800 |
commit | 924864fc7434518ee0ae688f9be9d3086ba4b3f5 (patch) | |
tree | 578cc81e8aca85024efe06d47dfad98468490351 /src | |
parent | 4dd0fa87859e6ffa1b230eedd1388098a8ba81a1 (diff) |
fix: don't apply dumbymap twice
Diffstat (limited to 'src')
-rw-r--r-- | src/dumbymap.mjs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dumbymap.mjs b/src/dumbymap.mjs index 13f4574..e9cb473 100644 --- a/src/dumbymap.mjs +++ b/src/dumbymap.mjs | |||
@@ -457,6 +457,7 @@ export const generateMaps = (container, { | |||
457 | const mapContainer = document.createElement('pre') | 457 | const mapContainer = document.createElement('pre') |
458 | mapContainer.className = 'mapclay-container' | 458 | mapContainer.className = 'mapclay-container' |
459 | mapContainer.textContent = '#Created by DumbyMap' | 459 | mapContainer.textContent = '#Created by DumbyMap' |
460 | mapContainer.style.cssText = 'display: none;' | ||
460 | htmlHolder.insertBefore(mapContainer, htmlHolder.firstElementChild) | 461 | htmlHolder.insertBefore(mapContainer, htmlHolder.firstElementChild) |
461 | elementsWithMapConfig.push(mapContainer) | 462 | elementsWithMapConfig.push(mapContainer) |
462 | } | 463 | } |