From 25e3a0c94551b0faac3f16e0598e6f4bdffcf7d8 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Fri, 12 Jul 2013 09:47:56 +0100 Subject: instead of using js to inject the correct cordova js file in to index.html restructure things so that the common files are a level down and the platofrm specific ones are directly placed in the relevant project. This both makes for less fuss and also avoids the error with Android < v3 instantiating cordova twice. Note that the iOS common assets are included by a build script rather than a symlink as symlinking doesn't seem to agree with Xcode --- www/cordova-independent.js | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 www/cordova-independent.js (limited to 'www/cordova-independent.js') diff --git a/www/cordova-independent.js b/www/cordova-independent.js deleted file mode 100644 index 26d2026..0000000 --- a/www/cordova-independent.js +++ /dev/null @@ -1,12 +0,0 @@ -(function () { - var scriptElement = document.createElement("script"); - scriptElement.type = "text/javascript"; - if (navigator.userAgent.match(/(iPhone|iPod|iPad)/)) { - scriptElement.src = 'cordova-ios-2.9.0.js'; - } else if (navigator.userAgent.match(/Android/)) { - scriptElement.src = 'cordova-android-2.9.0.js'; - } else { - alert("Unknown platform - userAgent is: " + navigator.userAgent); - } - $('head').prepend(scriptElement); -})(); -- cgit v1.2.3