The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Connect your GPU: Safari's note keeps two short sentences, with the other browsers on a quieter line below
Adarsh77d8b7bda84d
diff --git a/src/components/gpu/this-computer.tsx b/src/components/gpu/this-computer.tsxindex 8e76eeb9..d2f548ed 100644--- a/src/components/gpu/this-computer.tsx+++ b/src/components/gpu/this-computer.tsx@@ -102,27 +102,36 @@ function blockedSteps(): string {return "Click the icon to the left of the address, turn on Apps on device, then reload.";}+type Unsupported = "safari" | "phone" | "http";+/*** Why this browser can't use the ComfyUI on the person's computer, in their terms, then the way that works from right- * here: the web address form shown below these words. The person already has Fuobe open, so no line tells them to open- * it; the browser switch is only a last line, said as what those browsers allow.+ * here: the web address form shown below these words. Two short sentences. The person already has Fuobe open, so no+ * line tells them to open it.*/-const UNSUPPORTED: Record<"safari" | "phone" | "http", string> = {+const UNSUPPORTED: Record<Unsupported, string> = {phone: "A phone or tablet can't reach the ComfyUI on your computer from a website. Give your ComfyUI a web address below, and your runs reach it from here.",- safari:- "Safari doesn't let a website talk to programs on your Mac, so this page can't reach your ComfyUI. Give your ComfyUI a web address below, and it works from Safari. Chrome, Edge and Firefox allow this, so switching browser also works.",+ safari: "Safari doesn't let a website talk to programs on your Mac, so this page can't reach your ComfyUI. Give your ComfyUI a web address below, and it works from Safari.",http: "Your browser marks this page as not secure, so it doesn't let the page talk to programs on this computer, like ComfyUI. Give your ComfyUI a web address below, and it works from here.",};/** The owner's way from here is a ComfyUI at a server address (a cloud GPU, a tunnel), shown below these words. */-const UNSUPPORTED_OWNER: Record<"safari" | "phone" | "http", string> = {+const UNSUPPORTED_OWNER: Record<Unsupported, string> = {phone: "A phone or tablet can't reach the ComfyUI on your computer from a website. Use a ComfyUI on a server below, and your runs reach it from here.",- safari:- "Safari doesn't let a website talk to programs on your Mac, so this page can't reach your ComfyUI. Use a ComfyUI on a server below, and it works from Safari. Chrome, Edge and Firefox allow this, so switching browser also works.",+ safari: "Safari doesn't let a website talk to programs on your Mac, so this page can't reach your ComfyUI. Use a ComfyUI on a server below, and it works from Safari.",http: "Your browser marks this page as not secure, so it doesn't let the page talk to programs on this computer, like ComfyUI. Use a ComfyUI on a server below, or give this studio a secure address.",};-export const unsupportedWords = (why: "safari" | "phone" | "http", owner = false) => (owner ? UNSUPPORTED_OWNER : UNSUPPORTED)[why];+/** Under Safari's words, a quieter last line: what the other browsers allow (never "open Fuobe in…": it is open). */+const OTHER_BROWSERS = "Chrome, Edge and Firefox allow this, so switching browser also works.";++/** The words, for a <p>: the two sentences, and on Safari the other browsers' line below them. */+export const unsupportedWords = (why: Unsupported, owner = false) => (+ <>+ {(owner ? UNSUPPORTED_OWNER : UNSUPPORTED)[why]}+ {why === "safari" && <span className="mt-1 block text-[12px]">{OTHER_BROWSERS}</span>}+ </>+);/** Save a file the page made (the start file, the guard). */function save(name: string, text: string) {@@ -720,7 +729,7 @@ function Screen({return (<div className="space-y-3"><p className="flex items-start gap-2 text-muted-foreground">- <MonitorSmartphone className="mt-0.5 size-4 shrink-0" /> {UNSUPPORTED[state.why]}+ <MonitorSmartphone className="mt-0.5 size-4 shrink-0" /> <span>{unsupportedWords(state.why)}</span></p><PairInstead /></div>diff --git a/tests/e2e/computer-mode.mjs b/tests/e2e/computer-mode.mjsindex 7492e232..f82839c6 100644--- a/tests/e2e/computer-mode.mjs+++ b/tests/e2e/computer-mode.mjs@@ -467,6 +467,10 @@ try {await s.page.goto(`${SITE}/connect`, { waitUntil: "load" });const sa = await until(() => s.page.getByText("Safari doesn't let a website talk to programs on your Mac").first().isVisible(), 30_000);check("Safari gets the link option, with why", !!sa);+ check(+ "…the other browsers only as a last line, never \"open Fuobe in\"",+ (await s.page.getByText("Chrome, Edge and Firefox allow this, so switching browser also works.").first().isVisible()) && !(await s.page.getByText(/open (Fuobe|fuobe\.com) in/i).first().isVisible().catch(() => false)),+ );await s.ctx.close();}} catch (e) {