Adjust API
This commit is contained in:
parent
e8c3700ab9
commit
5aa41d9932
|
@ -1,2 +1,2 @@
|
|||
import { setupClient } from 'shared/enclave/client/preload';
|
||||
setupClient();
|
||||
import { registerProtocol } from 'shared/enclave/preload';
|
||||
registerProtocol();
|
||||
|
|
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue