mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-01 13:27:08 +02:00
fix uncaught promise
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user