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

Fixed various issue in RN app

This commit is contained in:
Laurent Cozic
2017-07-17 21:22:05 +01:00
parent 58fa4a69b0
commit ca68b85837
10 changed files with 51 additions and 8 deletions

View File

@ -1,3 +1,5 @@
import { Setting } from 'lib/models/setting.js';
class GeolocationReact {
static currentPosition_testResponse() {
@ -16,6 +18,8 @@ class GeolocationReact {
}
static currentPosition(options = null) {
if (Setting.value('env') == 'dev') return this.currentPosition_testResponse();
if (!options) options = {};
if (!('enableHighAccuracy' in options)) options.enableHighAccuracy = true;
if (!('timeout' in options)) options.timeout = 10000;