We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I pass in {timeout:5000}, it doesn't appear to get used...
geolocation.getLocation({timeout:5000}).then(function(data){
}, function(error){ //--- never gets called. }
The text was updated successfully, but these errors were encountered:
+1 I just needed the timeout option to work, so I added the following after the else block and before the return statement:
if(opts && opts.timeout && typeof opts.timeout === 'number'){ $timeout(function(){ $rootScope.$broadcast('error',geolocation_msgs['errors.location.timeout']); $rootScope.$apply(function() { deferred.reject(geolocation_msgs['errors.location.timeout']); }); }, opts.timeout); }
Seems to be working for me as intended.
Sorry, something went wrong.
No branches or pull requests
When I pass in {timeout:5000}, it doesn't appear to get used...
geolocation.getLocation({timeout:5000}).then(function(data){
}, function(error){
//--- never gets called.
}
The text was updated successfully, but these errors were encountered: