diff --git a/src/routes/estimation/[roomId]/+page.svelte b/src/routes/estimation/[roomId]/+page.svelte
index b226aae..14cbe93 100644
--- a/src/routes/estimation/[roomId]/+page.svelte
+++ b/src/routes/estimation/[roomId]/+page.svelte
@@ -142,14 +142,21 @@
onMount(() => {
socket = connectToWebSocket(data.roomId, onMessageReceived);
});
+
+ async function copyToClipboard() {
+ try {
+ await navigator.clipboard.writeText(window.location.href);
+ alert('Room link copied to clipboard!');
+ } catch (err) {
+ console.error('Failed to copy: ', err);
+ }
+ }
{#if showModal}