Skip to content
Permalink
Browse files
Added template-packaged WinJS reference for Windows 10 support. This
closes #111
  • Loading branch information
robpaveza authored and nikhilkh committed May 13, 2015
1 parent 53bacf7 commit f811f2c89e7d3dbda619176104cc32a0dbd20b82
Showing 1 changed file with 4 additions and 1 deletion.
@@ -50,7 +50,10 @@ module.exports = {
if (!window.WinJS) {
var scriptElem = document.createElement("script");

if (navigator.appVersion.indexOf("Windows Phone 8.1;") !== -1) {
if (navigator.appVersion.indexOf('MSAppHost/3.0') !== -1) {
// Windows 10 UWP
scriptElem.src = '/WinJS/js/WinJS.js';
} else if (navigator.appVersion.indexOf("Windows Phone 8.1;") !== -1) {
// windows phone 8.1 + Mobile IE 11
scriptElem.src = "//Microsoft.Phone.WinJS.2.1/js/base.js";
} else if (navigator.appVersion.indexOf("MSAppHost/2.0;") !== -1) {

0 comments on commit f811f2c

Please sign in to comment.