@@ -9,14 +9,14 @@ import * as Scope from "effect/Scope";
99import * as Electron from "electron" ;
1010
1111export const DESKTOP_HOST = "app" ;
12- export const DESKTOP_PRODUCTION_SCHEME = "t3code" ;
13- export const DESKTOP_DEVELOPMENT_SCHEME = "t3code-dev" ;
12+ const DESKTOP_PRODUCTION_SCHEME = "t3code" ;
13+ const DESKTOP_DEVELOPMENT_SCHEME = "t3code-dev" ;
1414
1515export function getDesktopScheme ( isDevelopment : boolean ) : string {
1616 return isDevelopment ? DESKTOP_DEVELOPMENT_SCHEME : DESKTOP_PRODUCTION_SCHEME ;
1717}
1818
19- export function getDesktopOrigin ( isDevelopment : boolean ) : string {
19+ function getDesktopOrigin ( isDevelopment : boolean ) : string {
2020 return `${ getDesktopScheme ( isDevelopment ) } ://${ DESKTOP_HOST } ` ;
2121}
2222
@@ -109,7 +109,7 @@ function withContentSecurityPolicy(response: Response, policy: string): Response
109109/**
110110 * Must run synchronously during process bootstrap, before Electron emits `ready`.
111111 */
112- export function registerDesktopSchemePrivilegesSync ( ) : void {
112+ function registerDesktopSchemePrivilegesSync ( ) : void {
113113 Electron . protocol . registerSchemesAsPrivileged ( [
114114 {
115115 scheme : DESKTOP_PRODUCTION_SCHEME ,
@@ -205,6 +205,7 @@ async function fetchWithTransientRetry(url: string, init: RequestInit): Promise<
205205 throw lastError ;
206206}
207207
208+ /** @public Service construction is part of the canonical Effect module API. */
208209export const make = Effect . gen ( function * ( ) {
209210 const registered = yield * Ref . make ( false ) ;
210211
0 commit comments