Repository: cordova-plugin-splashscreen
Updated Branches:
  refs/heads/master 5aff6590f -> 9ea2d4c86


CB-9467 SplashScreen does not show any image in hosted app on Windows 10


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/commit/9ea2d4c8
Tree: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/tree/9ea2d4c8
Diff: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/diff/9ea2d4c8

Branch: refs/heads/master
Commit: 9ea2d4c86f07bd2be449d06c31ab30960bc24c47
Parents: 5aff659
Author: daserge <[email protected]>
Authored: Thu Aug 6 20:54:50 2015 +0300
Committer: daserge <[email protected]>
Committed: Fri Aug 7 11:29:05 2015 +0300

----------------------------------------------------------------------
 www/windows/SplashScreenProxy.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/9ea2d4c8/www/windows/SplashScreenProxy.js
----------------------------------------------------------------------
diff --git a/www/windows/SplashScreenProxy.js b/www/windows/SplashScreenProxy.js
index dab7238..271a14c 100644
--- a/www/windows/SplashScreenProxy.js
+++ b/www/windows/SplashScreenProxy.js
@@ -26,9 +26,11 @@ var cordova = require('cordova'),
     channel = require('cordova/channel');
 
 var isPhone = (cordova.platformId == "windows") && WinJS.Utilities.isPhone;
-var localSplash = null; 
+var isHosted = window.location.protocol.indexOf('http') === 0;
+var localSplash = null;
 var bgColor = "#464646"; // default backgrond color; TDOO - read it from 
.appxmanifest
-var splashImageSrc = isPhone ? "ms-appx:///images/splashscreenphone.png" : 
"ms-appx:///images/splashscreen.png";
+var splashImageSrc = (isHosted ? "ms-appx-web" : "ms-appx") + ":///images/"
+    + (isPhone ? "splashscreenphone.png" : "splashscreen.png");
 
 var SplashScreen = {
     setBGColor: function (cssBGColor) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to