mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-13 04:24:14 +00:00
Adjust API
This commit is contained in:
parent
e8c3700ab9
commit
5aa41d9932
@ -1,2 +1,2 @@
|
|||||||
import { setupClient } from 'shared/enclave/client/preload';
|
import { registerProtocol } from 'shared/enclave/preload';
|
||||||
setupClient();
|
registerProtocol();
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { webFrame } from 'electron';
|
import { webFrame } from 'electron';
|
||||||
import { PROTOCOL_NAME } from 'shared/enclave/utils';
|
import { PROTOCOL_NAME } from 'shared/enclave/utils';
|
||||||
|
|
||||||
export function setupClient() {
|
export function registerProtocol() {
|
||||||
// Whitelist custom protocol
|
// Whitelist custom protocol
|
||||||
webFrame.registerURLSchemeAsPrivileged(PROTOCOL_NAME);
|
webFrame.registerURLSchemeAsPrivileged(PROTOCOL_NAME);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user