summaryrefslogtreecommitdiffhomepage
path: root/gui/src/shared
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2021-09-02 09:31:39 +0200
committerOskar Nyberg <oskar@mullvad.net>2021-09-06 14:38:26 +0200
commitb70fc1461d6eb505ba0fa58e01812454cfedd590 (patch)
tree22bebce9bc64f07941355d19c584ffdafb53f48f /gui/src/shared
parent59be0d414c8c2c819a97f5d290ad618d06ccdefd (diff)
downloadmullvadvpn-b70fc1461d6eb505ba0fa58e01812454cfedd590.tar.xz
mullvadvpn-b70fc1461d6eb505ba0fa58e01812454cfedd590.zip
Move all location handling to renderer
Diffstat (limited to 'gui/src/shared')
-rw-r--r--gui/src/shared/ipc-schema.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/gui/src/shared/ipc-schema.ts b/gui/src/shared/ipc-schema.ts
index 93f6b66b92..a20213f424 100644
--- a/gui/src/shared/ipc-schema.ts
+++ b/gui/src/shared/ipc-schema.ts
@@ -46,7 +46,6 @@ export interface IAppStateSnapshot {
accountHistory?: AccountToken;
tunnelState: TunnelState;
settings: ISettings;
- location?: ILocation;
relayListPair: IRelayListPair;
currentVersion: ICurrentAppVersionInfo;
upgradeVersion: IAppVersionInfo;
@@ -112,9 +111,6 @@ export const ipcSchema = {
connected: notifyRenderer<void>(),
disconnected: notifyRenderer<void>(),
},
- location: {
- '': notifyRenderer<ILocation>(),
- },
relays: {
'': notifyRenderer<IRelayListPair>(),
},
@@ -129,6 +125,9 @@ export const ipcSchema = {
openUrl: invoke<string, void>(),
showOpenDialog: invoke<Electron.OpenDialogOptions, Electron.OpenDialogReturnValue>(),
},
+ location: {
+ get: invoke<void, ILocation>(),
+ },
tunnel: {
'': notifyRenderer<TunnelState>(),
connect: invoke<void, void>(),