diff options
| author | Brendan Allan <[email protected]> | 2026-04-21 12:36:56 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-21 12:36:56 +0800 |
| commit | e5687d646ce33b5c05bb007bf14cf5362676733b (patch) | |
| tree | 6e0911ea079611e650806abbd1135f36e2421642 /packages/desktop-electron/src/renderer/html.test.ts | |
| parent | a38d53fe2f056e55347861b87f349264e7abec48 (diff) | |
| download | opencode-e5687d646ce33b5c05bb007bf14cf5362676733b.tar.gz opencode-e5687d646ce33b5c05bb007bf14cf5362676733b.zip | |
electron: use custom oc:// protocol for renderer windows (#23516)
Diffstat (limited to 'packages/desktop-electron/src/renderer/html.test.ts')
| -rw-r--r-- | packages/desktop-electron/src/renderer/html.test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/desktop-electron/src/renderer/html.test.ts b/packages/desktop-electron/src/renderer/html.test.ts index bd8281c2f..1fc5c8717 100644 --- a/packages/desktop-electron/src/renderer/html.test.ts +++ b/packages/desktop-electron/src/renderer/html.test.ts @@ -9,9 +9,9 @@ const root = resolve(dir, "../..") const html = async (name: string) => Bun.file(join(dir, name)).text() /** - * Electron loads renderer HTML via `win.loadFile()` which uses the `file://` - * protocol. Absolute paths like `src="/foo.js"` resolve to the filesystem root - * (e.g. `file:///C:/foo.js` on Windows) instead of relative to the app bundle. + * Packaged Electron windows load renderer HTML via the privileged `oc://` + * protocol. Root-relative asset paths like `src="/foo.js"` would resolve from + * the protocol origin root instead of relative to the current HTML entrypoint. * * All local resource references must use relative paths (`./`). */ |
