Fix Cordova crash probably

This commit is contained in:
Skylar Ittner 2021-09-10 00:14:01 -06:00
parent ce59068ebd
commit 31c8d4236a

View File

@ -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) {