Gets the current geolocation of a site visitor.
The getCurrentGeolocation()
method has the following limitations:
getCurrentGeolocation()
with a setTimeout()
in case the browser is set to not detect the locale. Adding the timeout lets you handle the unfulfilled promise.