Skip to content

Commit 2f68091

Browse files
balloobclaude
andauthored
Update cast link to use full server URL (#91)
The cast page now accepts full server URLs instead of just hostnames/IPs (see Sendspin/cast#25). Updated the cast link to pass the complete serverUrl (including protocol and port) instead of just location.hostname. Co-authored-by: Claude <noreply@anthropic.com>
1 parent fb465c5 commit 2f68091

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sendspin/serve/web/app.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function disconnect() {
9595

9696
// Set up Cast link with server URL
9797
elements.castLink.href = `https://sendspin.github.io/cast/?host=${encodeURIComponent(
98-
location.hostname,
98+
serverUrl,
9999
)}`;
100100

101101
if (["localhost", "127.0.0.1"].includes(location.hostname)) {

0 commit comments

Comments
 (0)