From 9c00e423f03a768668982061c65a6e95f77664d1 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 20 Jan 2016 01:51:14 +0100 Subject: spacing --- .../cordova-plugin-splashscreen/www/windows/SplashScreenProxy.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100755 => 100644 StoneIsland/plugins/cordova-plugin-splashscreen/www/windows/SplashScreenProxy.js (limited to 'StoneIsland/plugins/cordova-plugin-splashscreen/www/windows/SplashScreenProxy.js') diff --git a/StoneIsland/plugins/cordova-plugin-splashscreen/www/windows/SplashScreenProxy.js b/StoneIsland/plugins/cordova-plugin-splashscreen/www/windows/SplashScreenProxy.js old mode 100755 new mode 100644 index dab72381..271a14ca --- 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) { -- cgit v1.2.3-70-g09d2