We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ae2ca8 commit 40847b5Copy full SHA for 40847b5
app.js
@@ -98,7 +98,9 @@ async function afterSignIn(user) {
98
gameLink.href = userData.currentGameUrl;
99
gameLink.innerText = "Join Your Game";
100
document.getElementById("game-panel").style.display = "block";
101
- document.getElementById("userGame").src = userData.currentGameUrl;
+ const url = new URL(userData.currentGameUrl)
102
+ const gameId = url.pathname.slice(1);
103
+ document.getElementById("userGame").src = `https://lichess.org/embed/${gameId}?theme=auto&bg=auto&move=last`;
104
}
105
106
loadMatches();
0 commit comments