(transaction) possibility to change location

This commit is contained in:
Julien Calixte
2020-03-15 14:49:16 +01:00
parent 20463fa540
commit cab5a4e46d
6 changed files with 190 additions and 54 deletions

View File

@@ -78,9 +78,3 @@ export const toHex = (text: string): string => {
.join('')
)
}
export const getCurrentPosition = (options = {}): Promise<Position> => {
return new Promise((resolve, reject) => {
navigator.geolocation.getCurrentPosition(resolve, reject, options)
})
}