blob: a83c2086ee77bd53f93124e78bde3cc5a3c6f527 [file] [log] [blame]
(function () {
var VERSION = '2.7.0rc1',
currentScript = 'cordova-' + VERSION + '.js',
scripts = document.getElementsByTagName('script');
for (var n = 0; n < scripts.length; n++) {
if (scripts[n].src.indexOf('cordova.js') > -1) {
var cordovaPath = scripts[n].src.replace('cordova.js', currentScript);
var scriptElem = document.createElement("script");
scriptElem.src = cordovaPath;
document.head.appendChild(scriptElem);
}
}
})();
function backHome() {
if (window.device && device.platform && device.platform.toLowerCase() == 'android') {
navigator.app.backHistory();
}
else {
window.history.go(-1);
}
}