WIP: put all svg refs in scenario file at build time
This commit is contained in:
@@ -3,6 +3,7 @@ import * as gameboard from './modules/gameboard.js';
|
||||
import * as recordSheet from './modules/record_sheet.js';
|
||||
import * as mapSelectDialog from './modules/map_select_dialog.js';
|
||||
import { Observable } from './modules/observable.js';
|
||||
import sideShow from './assets/images/scenario-side_show.svg';
|
||||
|
||||
globalThis.svgns = 'http://www.w3.org/2000/svg';
|
||||
|
||||
@@ -12,7 +13,8 @@ const mapPlaceholder = document.querySelector('.map-placeholder'),
|
||||
contentVisToggleEl = document.querySelector('#content input[type="checkbox"].visible'),
|
||||
// fileName = localStorage.getItem('map') || (env === 'test' ? 'test_map' : 'map1'),
|
||||
fileName = localStorage.getItem('map') || 'scenario-side_show',
|
||||
map = `assets/images/${fileName}.svg`,
|
||||
// map = `assets/images/${fileName}.svg`,
|
||||
map = sideShow,
|
||||
fileInputEl = document.querySelector('input[type="file"]'),
|
||||
dice = document.querySelectorAll('.die'),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user