Skylar Ittner 3 years ago
parent 6f57946ab0
commit 7b9641e751

@ -199,7 +199,13 @@ function initCordova() {
// Handle geo: urls
$("#app").on("click", "a[href^='geo:']", function (evt) {
window.open($(this).attr("href"), "_system");
if (cordova.platformId == "ios") {
window.open($(this).attr("href").replace("geo:", "http://maps.apple.com/?q="), "_system");
} else if (cordova.platformId == "android") {
window.open($(this).attr("href").replace("geo:", "geo:0,0?q="), "_system");
} else {
window.open($(this).attr("href"), "_system");
}
evt.preventDefault();
});

Loading…
Cancel
Save