Adjust API

This commit is contained in:
Will O'Beirne 2018-05-04 11:56:17 -04:00
parent e8c3700ab9
commit 5aa41d9932
No known key found for this signature in database
GPG Key ID: 44C190DB5DEAF9F6
2 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
import { setupClient } from 'shared/enclave/client/preload';
setupClient();
import { registerProtocol } from 'shared/enclave/preload';
registerProtocol();

View File

@ -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);
}