summaryrefslogtreecommitdiffhomepage
path: root/app/lib
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-11-14 19:55:58 +0100
committerLinus Färnstrand <linus@mullvad.net>2017-11-14 19:55:58 +0100
commitf84cb000feaac9a9d97f9ea1e5762a8caef3fad4 (patch)
tree666c8ee33089c38a61ec7d043dc71065b90b1afb /app/lib
parent4e15bb8af7e7430b790e42edea17c834e6acec4d (diff)
downloadmullvadvpn-f84cb000feaac9a9d97f9ea1e5762a8caef3fad4.tar.xz
mullvadvpn-f84cb000feaac9a9d97f9ea1e5762a8caef3fad4.zip
Rename latlong to position
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/backend.js4
-rw-r--r--app/lib/ipc-facade.js4
2 files changed, 4 insertions, 4 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';