diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-11-14 19:55:58 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-11-14 19:55:58 +0100 |
| commit | f84cb000feaac9a9d97f9ea1e5762a8caef3fad4 (patch) | |
| tree | 666c8ee33089c38a61ec7d043dc71065b90b1afb | |
| parent | 4e15bb8af7e7430b790e42edea17c834e6acec4d (diff) | |
| download | mullvadvpn-f84cb000feaac9a9d97f9ea1e5762a8caef3fad4.tar.xz mullvadvpn-f84cb000feaac9a9d97f9ea1e5762a8caef3fad4.zip | |
Rename latlong to position
| -rw-r--r-- | app/lib/backend.js | 4 | ||||
| -rw-r--r-- | app/lib/ipc-facade.js | 4 | ||||
| -rw-r--r-- | test/mocks/ipc.js | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js index 7e5e21708f..496ad9b3b6 100644 --- a/app/lib/backend.js +++ b/app/lib/backend.js @@ -152,9 +152,9 @@ export class Backend { .then( location => { log.info('Got location', location); const newLocation = { - location: location.latlong, country: location.country, - city: location.city + city: location.city, + location: location.position }; this._store.dispatch(connectionActions.newLocation(newLocation)); }) diff --git a/app/lib/ipc-facade.js b/app/lib/ipc-facade.js index 5b67dcb76f..6cd224a441 100644 --- a/app/lib/ipc-facade.js +++ b/app/lib/ipc-facade.js @@ -10,14 +10,14 @@ export type AccountData = {expiry: string}; export type AccountToken = string; export type Ip = string; export type Location = { - latlong: Coordinate2d, country: string, city: string, + position: Coordinate2d, }; const LocationSchema = object({ - latlong: arrayOf(number), country: string, city: string, + position: arrayOf(number), }); export type SecurityState = 'secured' | 'unsecured'; diff --git a/test/mocks/ipc.js b/test/mocks/ipc.js index 67c11c7366..53ac487dd5 100644 --- a/test/mocks/ipc.js +++ b/test/mocks/ipc.js @@ -49,7 +49,7 @@ export function newMockIpc() { getLocation: () => Promise.resolve({ city: '', country: '', - latlong: [0, 0], + position: [0, 0], }), getState: () => Promise.resolve({ |
