opencode/packages/gui-plugins/src/schemes.ts

9 lines
495 B
TypeScript

import type { CustomScheme } from "electron"
import { previewScheme } from "./browser/scheme"
// Registered before app.ready. Only the owning plugin's partition installs a handler. In particular the scheme
// is not local, cannot bypass CSP, and does not support service workers or persistent background registrations.
export const schemes: CustomScheme[] = [
{ scheme: previewScheme, privileges: { standard: true, secure: true, supportFetchAPI: true, corsEnabled: true, stream: true } },
]