diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-04-21 13:06:42 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-04-21 13:11:12 +0200 |
| commit | 1f9355676375cd181be818780a7b26781eea1398 (patch) | |
| tree | fe8f3baec70f2452fa42fd200e2c5fb0504f61fe /gui/src | |
| parent | 171530b04a5fdbc8c27fa4f29ee37a98545ab335 (diff) | |
| download | mullvadvpn-1f9355676375cd181be818780a7b26781eea1398.tar.xz mullvadvpn-1f9355676375cd181be818780a7b26781eea1398.zip | |
Revert "Update Electron to 8.2.0"
This reverts commit c6c9a7bb21b4d465518987724c6b8fe33de9fa6a.
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/index.ts | 4 | ||||
| -rw-r--r-- | gui/src/shared/ipc-event-channel.ts | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index 6f9185688a..7f04c14571 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -190,10 +190,6 @@ class ApplicationMain { this.guiSettings.load(); - // The default value has previously been false but will be changed to true in Electron 9. The - // false value has been deprecated in Electron 8. This can be removed when Electron 9 is used. - app.allowRendererProcessReuse = true; - app.on('activate', this.onActivate); app.on('ready', this.onReady); app.on('window-all-closed', () => app.quit()); diff --git a/gui/src/shared/ipc-event-channel.ts b/gui/src/shared/ipc-event-channel.ts index b6e788e72e..bfa1e116ce 100644 --- a/gui/src/shared/ipc-event-channel.ts +++ b/gui/src/shared/ipc-event-channel.ts @@ -446,7 +446,7 @@ function handler<T>(event: string): (handlerFn: (value: T) => void) => void { type RequestResult<T> = { type: 'success'; value: T } | { type: 'error'; message: string }; -// The Electron API uses the `any` type. +// The Elector API uses the `any` type. /* eslint-disable @typescript-eslint/no-explicit-any */ function requestHandler<T>(event: string): (fn: (...args: any[]) => Promise<T>) => void { return (fn: (...args: any[]) => Promise<T>) => { @@ -477,7 +477,7 @@ function requestHandler<T>(event: string): (fn: (...args: any[]) => Promise<T>) } /* eslint-enable @typescript-eslint/no-explicit-any */ -// The Electron API uses the `any` type. +// The Elector API uses the `any` type. /* eslint-disable @typescript-eslint/no-explicit-any */ function requestSender<T>(event: string): (...args: any[]) => Promise<T> { return (...args: any[]): Promise<T> => { |
