summaryrefslogtreecommitdiff
path: root/StoneIsland/plugins/cordova-plugin-splashscreen/www/windows/SplashScreenProxy.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-01-20 01:51:14 +0100
committerJules Laplace <jules@okfoc.us>2016-01-20 01:51:14 +0100
commit9c00e423f03a768668982061c65a6e95f77664d1 (patch)
treeaa0f645699afc34adb9191211f499f72621585b3 /StoneIsland/plugins/cordova-plugin-splashscreen/www/windows/SplashScreenProxy.js
parent39780c6c2d5474e2af12661935f986265c0feb0d (diff)
spacing
Diffstat (limited to 'StoneIsland/plugins/cordova-plugin-splashscreen/www/windows/SplashScreenProxy.js')
-rw-r--r--[-rwxr-xr-x]StoneIsland/plugins/cordova-plugin-splashscreen/www/windows/SplashScreenProxy.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/StoneIsland/plugins/cordova-plugin-splashscreen/www/windows/SplashScreenProxy.js b/StoneIsland/plugins/cordova-plugin-splashscreen/www/windows/SplashScreenProxy.js
index dab72381..271a14ca 100755..100644
--- a/StoneIsland/plugins/cordova-plugin-splashscreen/www/windows/SplashScreenProxy.js
+++ b/StoneIsland/plugins/cordova-plugin-splashscreen/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) {