diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 9fecdc5..f9ea72f 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -70,10 +70,12 @@ dataChannel.onerror = () => { addToastMessage('WebRTC error', 'error'); isConnecting = false; + offerLink = ''; }; dataChannel.onclose = () => { addToastMessage('Disconnected', 'error'); isConnecting = false; + offerLink = ''; }; } diff --git a/src/routes/receive/+page.svelte b/src/routes/receive/+page.svelte index f0ce936..e67d3dd 100644 --- a/src/routes/receive/+page.svelte +++ b/src/routes/receive/+page.svelte @@ -1,7 +1,7 @@