mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
fix game not loading
This commit is contained in:
parent
7ba37397dd
commit
0cf2e2469e
@ -158,7 +158,12 @@ const Engine = {
|
||||
Engine.Display.content.style.display = "block";
|
||||
routing.navigateTo(Page.CreateProgram);
|
||||
MainMenuLinks.CreateProgram.classList.add("active");
|
||||
ReactDOM.render(<Theme><ProgramsRoot player={Player} /></Theme>, Engine.Display.content);
|
||||
ReactDOM.render(
|
||||
<Theme>
|
||||
<ProgramsRoot player={Player} />
|
||||
</Theme>,
|
||||
Engine.Display.content,
|
||||
);
|
||||
},
|
||||
|
||||
loadFactionsContent: function () {
|
||||
@ -263,8 +268,10 @@ const Engine = {
|
||||
loadWorkInProgressContent: function () {
|
||||
Engine.hideAllContent();
|
||||
const mainMenu = document.getElementById("mainmenu-container");
|
||||
console.log("hiding loadWorkInProgressContent");
|
||||
mainMenu.style.visibility = "hidden";
|
||||
Engine.Display.workInProgressContent.style.display = "block";
|
||||
console.log(Engine.Display.workInProgressContent);
|
||||
routing.navigateTo(Page.WorkInProgress);
|
||||
},
|
||||
|
||||
@ -797,7 +804,6 @@ const Engine = {
|
||||
}
|
||||
|
||||
ReactDOM.render(<SidebarRoot engine={this} player={Player} />, document.getElementById("sidebar"));
|
||||
Engine.loadTerminalContent();
|
||||
},
|
||||
|
||||
setDisplayElements: function () {
|
||||
@ -859,6 +865,8 @@ const Engine = {
|
||||
Engine.loadWorkInProgressContent();
|
||||
|
||||
Engine.displayCharacterOverviewInfo();
|
||||
} else {
|
||||
Engine.loadTerminalContent();
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user