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'); } })();