summaryrefslogtreecommitdiff
path: root/resources/js/main.js
blob: 1cabab5577712b2d81c84ff0f65de38fbba0ba38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
UI.wrapCallback(async function () {
  await initializeDB();

  // Load existing state
  if (localStorage.getItem('state')) {
    Memory.loadFromLocalStorage();
  }

  // Start New Game
  else {
    await initializeState();

    await Story.progress('start');
  }
})();