index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/modules/scenario.js')
-rw-r--r-- | src/modules/scenario.js | 3 |
1 files changed, 1 insertions, 2 deletions
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); }); |