Fix Cordova crash probably
This commit is contained in:
parent
ce59068ebd
commit
31c8d4236a
@ -168,21 +168,21 @@ function initCordova() {
|
|||||||
}, function (err) {});
|
}, function (err) {});
|
||||||
}
|
}
|
||||||
}, function (err) {});
|
}, function (err) {});
|
||||||
}, false);
|
|
||||||
|
|
||||||
window.htmlopen = window.open;
|
window.htmlopen = window.open;
|
||||||
window.open = cordova.InAppBrowser.open;
|
window.open = cordova.InAppBrowser.open;
|
||||||
|
|
||||||
openBrowser = function (url, options) {
|
openBrowser = function (url, options) {
|
||||||
if (typeof options == "undefined") {
|
if (typeof options == "undefined") {
|
||||||
options = "location=yes";
|
options = "location=yes";
|
||||||
|
}
|
||||||
|
window.open(url, '_blank', options);
|
||||||
}
|
}
|
||||||
window.open(url, '_blank', options);
|
|
||||||
}
|
|
||||||
|
|
||||||
openExternalBrowser = function (url) {
|
openExternalBrowser = function (url) {
|
||||||
window.open(url, '_system', '');
|
window.open(url, '_system', '');
|
||||||
}
|
}
|
||||||
|
}, false);
|
||||||
|
|
||||||
// Handle geo: urls
|
// Handle geo: urls
|
||||||
$("#app").on("click", "a[href^='geo:']", function (evt) {
|
$("#app").on("click", "a[href^='geo:']", function (evt) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user