diff --git a/emain/emain.ts b/emain/emain.ts index fa44c48de..2152c81bb 100644 --- a/emain/emain.ts +++ b/emain/emain.ts @@ -124,7 +124,7 @@ function mainResizeHandler(_: any, win: Electron.BrowserWindow) { } function shNavHandler(event: Electron.Event, url: string) { - if (url.startsWith("http://localhost:5173/index.html")) { + if (url.startsWith("http://127.0.0.1:5173/index.html")) { // this is a dev-mode hot-reload, ignore it console.log("allowing hot-reload of index.html"); return; @@ -153,7 +153,10 @@ function shFrameNavHandler(event: Electron.Event(blockId: string, name: string, makeFn: () => jotai.Atom function getBackendHostPort(): string { // TODO deal with dev/production - return "http://localhost:8190"; + return "http://127.0.0.1:8190"; } function getBackendWSHostPort(): string { - return "ws://localhost:8191"; + return "ws://127.0.0.1:8191"; } let globalWS: WSControl = null; diff --git a/frontend/app/view/preview.tsx b/frontend/app/view/preview.tsx index 88f2165e1..1b3fdeda3 100644 --- a/frontend/app/view/preview.tsx +++ b/frontend/app/view/preview.tsx @@ -76,7 +76,7 @@ function StreamingPreview({ fileInfo }: { fileInfo: FileInfo }) { if (fileInfo.mimetype == "application/pdf") { return (
-