diff options
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.js | 6 |
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) { |
