This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getPositionPromised() { | |
function successCb(resolve) { | |
return position => resolve(position); | |
} | |
function errorCb(reject) { | |
return () => reject('Could not retrieve geolocation'); | |
} | |
return new Promise((resolve, reject) => { |