1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Fixed geolocation bug and improved saving of notes and folders

This commit is contained in:
Laurent Cozic
2017-07-16 11:17:40 +01:00
parent e2d426a986
commit cd6d8ce284
9 changed files with 56 additions and 54 deletions

View File

@ -16,11 +16,6 @@ class GeolocationReact {
}
static currentPosition(options = null) {
if (typeof navigator === 'undefined') {
// TODO
return Promise.resolve(this.currentPosition_testResponse());
}
if (!options) options = {};
if (!('enableHighAccuracy' in options)) options.enableHighAccuracy = true;
if (!('timeout' in options)) options.timeout = 10000;