diff --git a/electron-app/preload/index.ts b/electron-app/preload/index.ts index b9ceae4c..8ae11660 100644 --- a/electron-app/preload/index.ts +++ b/electron-app/preload/index.ts @@ -1,2 +1,2 @@ -import { setupClient } from 'shared/enclave/client/preload'; -setupClient(); +import { registerProtocol } from 'shared/enclave/preload'; +registerProtocol(); diff --git a/shared/enclave/client/preload.ts b/shared/enclave/preload.ts similarity index 83% rename from shared/enclave/client/preload.ts rename to shared/enclave/preload.ts index 252b4271..7a15acad 100644 --- a/shared/enclave/client/preload.ts +++ b/shared/enclave/preload.ts @@ -1,7 +1,7 @@ import { webFrame } from 'electron'; import { PROTOCOL_NAME } from 'shared/enclave/utils'; -export function setupClient() { +export function registerProtocol() { // Whitelist custom protocol webFrame.registerURLSchemeAsPrivileged(PROTOCOL_NAME); }