fix uncaught promise

This commit is contained in:
Olivier Gagnon
2021-12-20 13:57:07 -05:00
parent 5dc9ac040a
commit e9886cc6bc
3 changed files with 21 additions and 0 deletions
+2
View File
@@ -46,6 +46,7 @@ import { exceptionAlert } from "./utils/helpers/exceptionAlert";
import { startExploits } from "./Exploits/loops";
import React from "react";
import { setupUncaughtPromiseHandler } from "./UncaughtPromiseHandler";
const Engine: {
_lastUpdate: number;
@@ -237,6 +238,7 @@ const Engine: {
load: function (saveString) {
startExploits();
setupUncaughtPromiseHandler();
// Load game from save or create new game
if (loadGame(saveString)) {
ThemeEvents.emit();