You've already forked joplin
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user