mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-18 21:52:09 +02:00
UI: Reload immediately after importing, deleting save data or killing all scripts (#2697)
This commit is contained in:
+1
-1
@@ -224,7 +224,7 @@ export function GameRoot(): React.ReactElement {
|
||||
saveObject
|
||||
.saveGame()
|
||||
.then(() => {
|
||||
setTimeout(() => htmlLocation.reload(), 2000);
|
||||
setTimeout(() => htmlLocation.reload(), 0);
|
||||
})
|
||||
.catch((error) => {
|
||||
exceptionAlert(error);
|
||||
|
||||
@@ -27,7 +27,7 @@ export function DeleteGameButton({ color = "primary" }: IProps): React.ReactElem
|
||||
deleteGame()
|
||||
.then(() => {
|
||||
pushDisableRestore();
|
||||
setTimeout(() => location.reload(), 1000);
|
||||
setTimeout(() => location.reload(), 0);
|
||||
})
|
||||
.catch((r) => console.error("Could not delete game: %o", r));
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user