convert game saved to snackbar, index.html is nearly empty now

This commit is contained in:
Olivier Gagnon
2021-09-25 14:10:32 -04:00
parent d49fea4cbc
commit 97624395c1
4 changed files with 33 additions and 7 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ import { loadSpecialServerIps, SpecialServerIps } from "./Server/SpecialServerIp
import { SourceFileFlags } from "./SourceFile/SourceFileFlags";
import { loadStockMarket, StockMarket } from "./StockMarket/StockMarket";
import { createStatusText } from "./ui/createStatusText";
import { GameSavedEvents } from "./ui/React/Snackbar";
import { setTimeoutRef } from "./utils/SetTimeoutRef";
import * as ExportBonus from "./ExportBonus";
@@ -79,7 +79,7 @@ class BitburnerSaveObject {
const saveString = this.getSaveString();
save(saveString)
.then(() => createStatusText("Game saved!"))
.then(() => GameSavedEvents.emit())
.catch((err) => console.error(err));
}