diff options
Diffstat (limited to 'resources/js/main.js')
-rw-r--r-- | resources/js/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/js/main.js b/resources/js/main.js index ff570ad..f472a14 100644 --- a/resources/js/main.js +++ b/resources/js/main.js @@ -1,4 +1,4 @@ -UI.createEventListener(async function () { +UI.wrapCallback(async function () { await initializeDB(); // Load existing state @@ -19,7 +19,7 @@ UI.createEventListener(async function () { ); const monsterSelection = UI.openStarterMonsterSelection(possibleStarterMonsters); - monsterSelection.addEventListener('starter:monster:selected', UI.createEventListener(async (event) => { + monsterSelection.addEventListener('starter:monster:selected', UI.wrapCallback(async (event) => { if (!confirm(`Select ${event.detail.monster.name}?`)) { return; } |