import { mount } from "svelte"; // /watch/ is the public share page — one turn, anyone may look. It // loads its own component so the full app (and its live socket appetite) // stays out of a shared link's way. const target = document.getElementById("app")!; const page = location.pathname.startsWith("/watch/") ? import("./SharePage.svelte") : import("./App.svelte"); page.then(({ default: Root }) => mount(Root, { target }));