Skip to content

Commit

Permalink
[Bug #115582173] Window onload
Browse files Browse the repository at this point in the history
  • Loading branch information
JackWachira committed Aug 2, 2016
1 parent 38370aa commit 797c837
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions troupon/static/js/location.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$(document).ready(function() {
window.onload = function() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition, showError);
} else {
Expand Down Expand Up @@ -63,12 +63,12 @@
document.cookie = "city='" + city + "'";
if (!localStorage.reload) {
localStorage.setItem("reload", "true");
// window.location.reload();
window.location.reload();
}
},
error: function(result) {
toastr.error(result);
}
});
}
});
};

0 comments on commit 797c837

Please sign in to comment.