Add db for backup and memory happiness
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user