summaryrefslogtreecommitdiffhomepage
path: root/app/lib
diff options
context:
space:
mode:
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);