title: Check if browser has allowed geolocation services in the past?
body: <p>Currently I can determine if a user has Allowed or Denied browser location services. But how do I detect if a user's browser has previously allowed the permission? I don't want to show the &quot;setting message&quot; to the user again.</p>
  <pre><code>$(&quot;#updateLocation&quot;).click(function(e){
        e.preventdefault;
        navigator.geolocation.getCurrentPosition(allowLocation,deniedLocation);
        return false;
  });
  
  function allowLocation(position){
  // codes
  }
  
  function deniedLocation(){
  // codes
  }
  </code></pre>