Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

geolocation async js

function getPosition(){
    return new Promise((resolve, reject) => 
        navigator.geolocation.getCurrentPosition(resolve, reject)
    );
}
Source by whatwebcando.today #
 
PREVIOUS NEXT
Tagged: #geolocation #async #js
ADD COMMENT
Topic
Name
3+3 =