mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
convert player to ts
This commit is contained in:
@@ -195,7 +195,7 @@ export function GameOptionsRoot(props: IProps): React.ReactElement {
|
||||
return;
|
||||
}
|
||||
const contents = result;
|
||||
save(contents).then(() => location.reload());
|
||||
save(contents).then(() => setTimeout(() => location.reload(), 1000));
|
||||
};
|
||||
reader.readAsText(file);
|
||||
}
|
||||
@@ -628,7 +628,7 @@ export function GameOptionsRoot(props: IProps): React.ReactElement {
|
||||
onConfirm={() => {
|
||||
setDeleteOpen(false);
|
||||
deleteGame()
|
||||
.then(() => location.reload())
|
||||
.then(() => setTimeout(() => location.reload(), 1000))
|
||||
.catch((r) => console.error(`Could not delete game: ${r}`));
|
||||
}}
|
||||
open={deleteGameOpen}
|
||||
|
||||
Reference in New Issue
Block a user