summaryrefslogtreecommitdiffhomepage
path: root/app/lib
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-11-17 09:52:18 +0100
committerAndrej Mihajlov <and@mullvad.net>2017-11-23 12:40:26 +0100
commit7f358e5f5b9080e451ee16bf1e544f65509ea772 (patch)
tree96d690d8304bb1776cf0837ac56dc0ae59ff2f22 /app/lib
parent1c8d25391788d23cce0234f896c5490e4d11e92c (diff)
downloadmullvadvpn-7f358e5f5b9080e451ee16bf1e544f65509ea772.tar.xz
mullvadvpn-7f358e5f5b9080e451ee16bf1e544f65509ea772.zip
Rename get_location -> get_current_location
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/ipc-facade.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/lib/ipc-facade.js b/app/lib/ipc-facade.js
index ad91f43427..107cb3419d 100644
--- a/app/lib/ipc-facade.js
+++ b/app/lib/ipc-facade.js
@@ -16,7 +16,9 @@ export type Location = {
};
const LocationSchema = object({
country: string,
+ country_code: string,
city: string,
+ city_code: string,
position: arrayOf(number),
});
@@ -167,7 +169,7 @@ export class RealIpc implements IpcFacade {
}
getLocation(): Promise<Location> {
- return this._ipc.send('get_location')
+ return this._ipc.send('get_current_location')
.then(raw => {
try {
const validated: any = validate(LocationSchema, raw);