From 016ad2e8f6eb4ed750c61cd17898d4a5393929e3 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Thu, 27 Jun 2024 15:03:35 -0700
Subject: Fix elevation view styles
---
src/modules/scenario.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
(limited to 'src/modules/scenario.js')
diff --git a/src/modules/scenario.js b/src/modules/scenario.js
index 8b466cb..bde8cf3 100644
--- a/src/modules/scenario.js
+++ b/src/modules/scenario.js
@@ -3,7 +3,7 @@ async function loadScript(scenario, svg, script) {
const scriptEl = document.createElementNS("http://www.w3.org/2000/svg", 'script');
scriptEl.onload = () => {
- console.log('map.js loaded');
+ console.log(`${script}.js loaded`);
resolve();
};
@@ -18,7 +18,6 @@ async function loadScript(scenario, svg, script) {
scriptEl.dataset.cols = dataset.cols;
}
- // scriptEl.setAttributeNS(null, 'href', '../../map.js');
scriptEl.setAttributeNS(null, 'href', `../../${script}.js`);
svg.append(scriptEl);
});
--
cgit v1.2.3