aboutsummaryrefslogtreecommitdiffstats
path: root/src/electron-util.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/electron-util.ts')
-rw-r--r--src/electron-util.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/electron-util.ts b/src/electron-util.ts
index 4576de9a6..6250366dc 100644
--- a/src/electron-util.ts
+++ b/src/electron-util.ts
@@ -3,7 +3,7 @@
3import * as electron from 'electron'; 3import * as electron from 'electron';
4import { initialize, enable } from '@electron/remote/main'; 4import { initialize, enable } from '@electron/remote/main';
5 5
6export const initializeRemote = () => { 6export const initializeRemote = (): void => {
7 if (process.type !== 'browser') { 7 if (process.type !== 'browser') {
8 throw new Error( 8 throw new Error(
9 'The remote api must be initialized from the main process.', 9 'The remote api must be initialized from the main process.',
@@ -13,7 +13,7 @@ export const initializeRemote = () => {
13 initialize(); 13 initialize();
14}; 14};
15 15
16export const enableWebContents = (webContents: electron.WebContents) => { 16export const enableWebContents = (webContents: electron.WebContents): void => {
17 enable(webContents); 17 enable(webContents);
18}; 18};
19 19