Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/publish-embed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { adjectives, animals, uniqueNamesGenerator } from "unique-names-generato
import hljs from "@/lib/highlight";

export default function PublishEmbed() {
const name = uniqueNamesGenerator({ dictionaries: [adjectives, animals], separator: "-" });
const name = `${uniqueNamesGenerator({ dictionaries: [adjectives, animals], separator: "-" })}.hang`;
const url = new URL("/anon", import.meta.env.PUBLIC_RELAY_URL);

const embedHtml = `<script type="module">
Expand Down
2 changes: 1 addition & 1 deletion src/components/publish.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "@moq/publish/ui";
import { Lite } from "@moq/publish";

export default function Publish() {
const name = uniqueNamesGenerator({ dictionaries: [adjectives, animals], separator: "-" });
const name = `${uniqueNamesGenerator({ dictionaries: [adjectives, animals], separator: "-" })}.hang`;
const url = new URL("/anon", import.meta.env.PUBLIC_RELAY_URL);
const [copied, setCopied] = createSignal(false);

Expand Down
2 changes: 1 addition & 1 deletion src/components/watch-embed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import hljs from "@/lib/highlight";

export default function WatchEmbed() {
const params = new URLSearchParams(window.location.search);
const name = params.get("name") ?? "bbb";
const name = params.get("name") ?? "bbb.hang";

// The relay URL on /watch may include a JWT for BBB; strip query params.
const relay = new URL("/anon", import.meta.env.PUBLIC_RELAY_URL);
Expand Down
4 changes: 2 additions & 2 deletions src/components/watch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { Lite } from "@moq/watch";

export default function Watch() {
const params = new URLSearchParams(window.location.search);
const name = params.get("name") ?? "bbb";
const name = params.get("name") ?? "bbb.hang";

const url = new URL(name === "bbb" ? "/demo" : "/anon", import.meta.env.PUBLIC_RELAY_URL);
const url = new URL(name === "bbb.hang" ? "/demo" : "/anon", import.meta.env.PUBLIC_RELAY_URL);

return (
<>
Expand Down
Loading