Add db for backup and memory happiness

This commit is contained in:
jheaps
2025-07-05 18:48:30 -06:00
parent 7a532e52e1
commit 9003d2c4dd
27 changed files with 2682 additions and 245 deletions
@@ -105,8 +105,8 @@ function renderPieces(pieces) {
}
e.dataTransfer.setData("text/plain", JSON.stringify({
srcRow: piece.Row,
srcCol: piece.Col
srcRow: piece.row,
srcCol: piece.col
}))
}
@@ -319,7 +319,7 @@ function getCookie(name) {
async function setupSignalRConnection() {
signalRConnection = new signalR.HubConnectionBuilder()
.withUrl("/chessHub")
.configureLogging(signalR.LogLevel.Information)
.configureLogging(signalR.LogLevel.Trace)
.build();
signalRConnection.onclose(err => {
@@ -386,7 +386,7 @@ function updatePromotionModalImages(color) {
console.log("chessLogic.js loaded");
window.startNewGame = startNewGame;
window.addEventListener('load', async () => {
document.addEventListener('DOMContentLoaded', async () => {
const savedGameId = getCookie("chessGameId");
const savedPlayerId = getCookie("chessPlayerId");
const savedPlayerIsWhite = getCookie("chessPlayerIsWhite");