cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject [6/9] cordova-windows git commit: CB-10487 WindowsStoreIdentityName should be lowercased in Application.StartPage
Date Mon, 01 Feb 2016 10:22:36 GMT
CB-10487 WindowsStoreIdentityName should be lowercased in Application.StartPage


Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/a75bff6f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/a75bff6f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/a75bff6f

Branch: refs/heads/4.3.x
Commit: a75bff6ff30d3f880e03dd61d81af05bd6f235c7
Parents: 3bf6ecb
Author: daserge <v-seshak@microsoft.com>
Authored: Sat Jan 30 11:29:08 2016 +0300
Committer: Vladimir Kotikov <kotikov.vladimir@gmail.com>
Committed: Mon Feb 1 12:55:22 2016 +0300

----------------------------------------------------------------------
 spec/unit/Prepare.Win10.spec.js | 2 +-
 template/cordova/lib/prepare.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/a75bff6f/spec/unit/Prepare.Win10.spec.js
----------------------------------------------------------------------
diff --git a/spec/unit/Prepare.Win10.spec.js b/spec/unit/Prepare.Win10.spec.js
index b992332..98b75c6 100644
--- a/spec/unit/Prepare.Win10.spec.js
+++ b/spec/unit/Prepare.Win10.spec.js
@@ -124,7 +124,7 @@ describe('Windows 10 project', function() {
 
         // Workaround to avoid WWAHost.exe bug: https://issues.apache.org/jira/browse/CB-10446
         var isAppxWebStartupUri = app.attrib.StartPage === 'ms-appx-web:///www/index.html'
|| 
-            app.attrib.StartPage === 'ms-appx-web://' + mockConfig.config.packageName() +
'/www/index.html';
+            app.attrib.StartPage === 'ms-appx-web://' + mockConfig.config.packageName().toLowerCase()
+ '/www/index.html';
         expect(isAppxWebStartupUri).toBe(true);
     });
 

http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/a75bff6f/template/cordova/lib/prepare.js
----------------------------------------------------------------------
diff --git a/template/cordova/lib/prepare.js b/template/cordova/lib/prepare.js
index 1b421a0..699e379 100644
--- a/template/cordova/lib/prepare.js
+++ b/template/cordova/lib/prepare.js
@@ -218,7 +218,7 @@ function applyStartPage(config, manifest, targetingWin10) {
     else if (uriPrefix.toLowerCase().substring(0, 7) === 'ms-appx') {
         var pkgName = config.getPreference('WindowsStoreIdentityName') || config.packageName();
         // Workaround to avoid WWAHost.exe bug: https://issues.apache.org/jira/browse/CB-10446
-        uriPrefix += pkgName + '/'; // add Identity.Name
+        uriPrefix += pkgName.toLowerCase() + '/'; // add Identity.Name
     }
 
     manifest.getApplication().setStartPage(uriPrefix + startPagePrefix + startPage);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message