mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
index.html is empty now
This commit is contained in:
parent
97624395c1
commit
60a91cd9f7
@ -38,10 +38,7 @@
|
||||
<% } %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="entire-game-container">
|
||||
<div id="mainmenu-container" style="display: flex; flex-direction: row"></div>
|
||||
</div>
|
||||
<div id="root" />
|
||||
</body>
|
||||
|
||||
<script src="src/ThirdParty/raphael.min.js"></script>
|
||||
</html>
|
||||
|
@ -9,7 +9,7 @@ ReactDOM.render(
|
||||
<Theme>
|
||||
<LoadingScreen />
|
||||
</Theme>,
|
||||
document.getElementById("mainmenu-container"),
|
||||
document.getElementById("root"),
|
||||
);
|
||||
|
||||
function rerender(): void {
|
||||
@ -18,7 +18,7 @@ function rerender(): void {
|
||||
<Theme>
|
||||
<LoadingScreen />
|
||||
</Theme>,
|
||||
document.getElementById("mainmenu-container"),
|
||||
document.getElementById("root"),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@ let gameContainer: HTMLElement;
|
||||
|
||||
(function () {
|
||||
function getGameContainer(): void {
|
||||
const container = document.getElementById("entire-game-container");
|
||||
const container = document.getElementById("root");
|
||||
if (container == null) {
|
||||
throw new Error(`Failed to find game container DOM element`);
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ let gameContainer: HTMLElement;
|
||||
|
||||
(function () {
|
||||
function getGameContainer(): void {
|
||||
const container = document.getElementById("entire-game-container");
|
||||
const container = document.getElementById("root");
|
||||
if (container == null) {
|
||||
throw new Error(`Failed to find game container DOM element`);
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ export function createPopup(id: string, elems: HTMLElement[], options: ICreatePo
|
||||
}
|
||||
|
||||
container.appendChild(content);
|
||||
getElementById("entire-game-container").appendChild(container);
|
||||
getElementById("root").appendChild(container);
|
||||
|
||||
return container;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user