Skip to content

Commit bb9414b

Browse files
committed
Remove user count temporarly until I fix it resetting bootstrap modals. WS connection stays intact
1 parent 342093d commit bb9414b

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Client/Components/App.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
ws.onmessage = (message) => {
4040
//console.log("WebSocket message: ", message.data);
4141
// The only message i can currently recieve are the amount of users online. TODO: JSON messages
42-
if (message.data == "1") {
43-
$("#activeUsers").html("There is currently <em>one user</em> here.");
44-
} else {
45-
$("#activeUsers").html("There are currently <em>" + message.data + " users</em> here.");
46-
}
42+
//if (message.data == "1") {
43+
// $("#activeUsers").html("There is currently <em>one user</em> here.");
44+
//} else {
45+
// $("#activeUsers").html("There are currently <em>" + message.data + " users</em> here.");
46+
//}
4747
};
4848
window.ws = ws;
4949

Client/Components/Pages/Home.razor

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
<PageTitle>Replay viewer</PageTitle>
99
<h1>Replay browser for Space Station 14</h1>
10-
<p id="activeUsers">There is currently <em>one user</em> here.</p>
1110
<hr/>
1211
<SearchBar></SearchBar>
1312
<hr/>

Client/Components/Pages/Search.razor

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
<PageTitle>Replay viewer</PageTitle>
1010
<h1>Replay browser for Space Station 14</h1>
11-
<p id="activeUsers">There is currently <em>one user</em> here.</p>
1211
<p>Search for replays by using the search bar below</p>
1312
<a href="/" class="btn btn-primary">Back to main page</a>
1413
<hr/>

0 commit comments

Comments
 (0)