This commit is contained in:
NewHappyRabbit
2025-02-12 02:08:56 +02:00
parent 1e1942ab1c
commit 7be0b9bc65
+2
View File
@@ -156,6 +156,7 @@ export class JoinPrivateLobbyModal extends LitElement {
private async pasteFromClipboard() {
try {
// TODO: This can be either a link or a id, check if it's a link
const clipText = await navigator.clipboard.readText();
this.lobbyIdInput.value = clipText;
} catch (err) {
@@ -164,6 +165,7 @@ export class JoinPrivateLobbyModal extends LitElement {
}
private joinLobby() {
// TODO: This can be either a link or a id, check if it's a link
const lobbyId = this.lobbyIdInput.value;
consolex.log(`Joining lobby with ID: ${lobbyId}`);
this.message = "Checking lobby..."; // Set initial message