You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2016/03/18 20:52:25 UTC
[2/6] js commit: CB-10558 Update cordova-js according to windows8
deprecation
CB-10558 Update cordova-js according to windows8 deprecation
Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/1b111058
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/1b111058
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/1b111058
Branch: refs/heads/4.1.x
Commit: 1b111058631e118dc37da473e30b60214c211d76
Parents: 533e1bf
Author: daserge <v-...@microsoft.com>
Authored: Mon Feb 8 15:27:02 2016 +0300
Committer: daserge <v-...@microsoft.com>
Committed: Tue Feb 9 12:10:56 2016 +0300
----------------------------------------------------------------------
src/legacy-exec/windows/platform.js | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-js/blob/1b111058/src/legacy-exec/windows/platform.js
----------------------------------------------------------------------
diff --git a/src/legacy-exec/windows/platform.js b/src/legacy-exec/windows/platform.js
index 5fe11eb..3d49081 100644
--- a/src/legacy-exec/windows/platform.js
+++ b/src/legacy-exec/windows/platform.js
@@ -20,9 +20,7 @@
*/
module.exports = {
- // for backward compatibility we report 'windows8' when run on Windows 8.0 and
- // 'windows' for Windows 8.1 and Windows Phone 8.1
- id: (navigator.appVersion.indexOf("MSAppHost/1.0") !== -1) ? 'windows8' : 'windows',
+ id: 'windows',
bootstrap:function() {
var cordova = require('cordova'),
exec = require('cordova/exec'),
@@ -59,9 +57,6 @@ module.exports = {
} else if (navigator.appVersion.indexOf("MSAppHost/2.0;") !== -1) {
// windows 8.1 + IE 11
scriptElem.src = "//Microsoft.WinJS.2.0/js/base.js";
- } else {
- // windows 8.0 + IE 10
- scriptElem.src = "//Microsoft.WinJS.1.0/js/base.js";
}
scriptElem.addEventListener("load", onWinJSReady);
document.head.appendChild(scriptElem);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org