Fix Cordova crash probably

master
Skylar Ittner 3 years ago
parent ce59068ebd
commit 31c8d4236a

@ -168,21 +168,21 @@ function initCordova() {
}, function (err) {});
}
}, function (err) {});
}, false);
window.htmlopen = window.open;
window.open = cordova.InAppBrowser.open;
window.htmlopen = window.open;
window.open = cordova.InAppBrowser.open;
openBrowser = function (url, options) {
if (typeof options == "undefined") {
options = "location=yes";
openBrowser = function (url, options) {
if (typeof options == "undefined") {
options = "location=yes";
}
window.open(url, '_blank', options);
}
window.open(url, '_blank', options);
}
openExternalBrowser = function (url) {
window.open(url, '_system', '');
}
openExternalBrowser = function (url) {
window.open(url, '_system', '');
}
}, false);
// Handle geo: urls
$("#app").on("click", "a[href^='geo:']", function (evt) {

Loading…
Cancel
Save