Skip to content

Commit

Permalink
Removed redundent message
Browse files Browse the repository at this point in the history
  • Loading branch information
derekShaheen committed Apr 8, 2024
1 parent 6747afa commit 004358f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

[assembly: MelonInfo(typeof(WickerREST.WickerServer), "WickerREST", "0.95.2", "Skrip")]
[assembly: MelonGame("Crate Entertainment", "Farthest Frontier")]
[assembly: MelonColor(ConsoleColor.Magenta)]
[assembly: MelonColor(255, 0, 255, 0)]
4 changes: 2 additions & 2 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ <h5 class="modal-title" id="modalLabel">Command Request</h5>
loadingSpinner.parentElement.removeChild(loadingSpinner);
}

//displayResponse("[Server]", "Heartbeat", "Connection established with server.")
createCommandButtons(data.commands);

// Set header
Expand Down Expand Up @@ -452,6 +453,7 @@ <h5 class="modal-title" id="modalLabel">Command Request</h5>
document.getElementById('gameVariables').innerHTML = '';
document.getElementById('gameVariables').style.display = 'none';
document.getElementById('flashCheck').style.display = 'none';
displayResponse("[Server]", "Heartbeat", "Lost connection to server.")
errorLogged = true; // Log the error once
}
// Implement a retry logic after a delay
Expand All @@ -471,12 +473,10 @@ <h5 class="modal-title" id="modalLabel">Command Request</h5>
if (isConnected) {
statusElement.textContent = "Telemetry Active";
statusElement.className = "text-success"; // Use Bootstrap class for styling
displayResponse("[Server]", "Heartbeat", "Connection established with server.")
}
else {
statusElement.textContent = ""//"Telemetry Lost";
statusElement.className = "text-danger"; // Use Bootstrap class for styling
displayResponse("[Server]", "Heartbeat", "Lost connection to server.")
}
}

Expand Down

0 comments on commit 004358f

Please sign in to comment.