<commit_before>
const logger = require('../util/logger');

const positionOptions = {
	enableHighAccuracy: false,
	timeout: 5000,
	maximumAge: 1000
};

export function getPosition() {
	return new Promise((resolve, reject) => {
		navigator.geolocation.getCurrentPosition(
			(position) => {
				resolve(position); },
			(error) => {
				//logger.log('getPosition Error: ' + JSON.stringify(error));
				reject(error);
			},
			positionOptions
		);
	});
}

export function getPermission() {
	return new Promise((resolve, reject) => {
	});
}
<commit_msg>Fixed #133 by removing maximumAge parameter causing problems for android 6 api 23<commit_after>
const logger = require('../util/logger');

const positionOptions = {
	enableHighAccuracy: false,
	timeout: 5000,
};

export function getPosition() {
	return new Promise((resolve, reject) => {
		navigator.geolocation.getCurrentPosition(
			(position) => {
				resolve(position); },
			(error) => {
				//logger.log('getPosition Error: ' + JSON.stringify(error));
				reject(error);
			},
			positionOptions
		);
	});
}

export function getPermission() {
	return new Promise((resolve, reject) => {
	});
}

{'fraction_non_alphanumeric': 0.15331010452961671, 'fraction_numerical': 0.0156794425087108, 'mean_word_length': 4.175675675675675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2990123', 'n_tokens_mistral': 405, 'n_tokens_neox': 346, 'n_words': 80}