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/index.js')
-rw-r--r-- | src/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js index 4c7db30..800eea7 100644 --- a/src/index.js +++ b/src/index.js @@ -10,7 +10,7 @@ const mapPlaceholder = document.querySelector('.map-placeholder'), proneToggle = document.getElementById('toggle-prone-counter'), contentVisToggleEl = document.querySelector('#content input[type="checkbox"].visible'), object = document.querySelector('object'), - fileName = `${localStorage.getItem('map') || 'map1'}.svg`, + fileName = `assets/images/${localStorage.getItem('map') || 'map1'}.svg`, toggleContentVis = (function () { document.querySelectorAll('#content div').forEach(div => { @@ -132,5 +132,5 @@ object.addEventListener('load', load); objectDataObserver.observe(object, { attributeFilter: ['data'] }); if (object.getAttribute('data') !== fileName) { - object.data = fileName; + object.data = `assets/images/${fileName}`; } |