Skip to content

Commit

Permalink
Update Geolocation.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Nov 29, 2017
1 parent e6630b3 commit e9d3506
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apidoc/Titanium/Geolocation/Geolocation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ description: |
To retrieve location events:
var win = Ti.UI.createWindow({backgroundColor: 'gray'});
var win = Ti.UI.createWindow({ backgroundColor: 'gray' });
Ti.Geolocation.accuracy = Ti.Geolocation.ACCURACY_HIGH;
Expand All @@ -155,11 +155,11 @@ description: |
});
}
win.addEventListener('open', function(){
if(Ti.Geolocation.hasLocationPermissions()){
win.addEventListener('open', function() {
if (Ti.Geolocation.hasLocationPermissions()){
getLocation();
}else{
Ti.Geolocation.requestLocationPermissions(Ti.Geolocation.AUTHORIZATION_ALWAYS, function(e){
} else {
Ti.Geolocation.requestLocationPermissions(Ti.Geolocation.AUTHORIZATION_ALWAYS, function(e) {
if (e.success) {
getLocation();
} else {
Expand Down

0 comments on commit e9d3506

Please sign in to comment.