CB-10650 Non-index content.src causes Splashscreen to be not displayed on browser

This commit is contained in:
daserge 2016-02-19 12:46:29 +03:00
parent 5ea854d8c3
commit 850159490c
3 changed files with 4 additions and 5 deletions

View File

@ -84,7 +84,7 @@ The plugin reloads splash drawable whenever orientation changes, so you can spec
You can use the following preferences in your `config.xml`:
<platform name="browser">
<preference name="SplashScreen" value="images/browser/splashscreen.jpg" /> <!-- defaults to "img/logo.png" -->
<preference name="SplashScreen" value="/images/browser/splashscreen.jpg" /> <!-- defaults to "/img/logo.png" -->
<preference name="SplashScreenDelay" value="3000" /> <!-- defaults to "3000" -->
<preference name="SplashScreenBackgroundColor" value="green" /> <!-- defaults to "#464646" -->
<preference name="ShowSplashScreen" value="false" /> <!-- defaults to "true" -->
@ -92,6 +92,7 @@ You can use the following preferences in your `config.xml`:
<preference name="SplashScreenHeight" value="300" /> <!-- defaults to "200" -->
</platform>
__Note__: `SplashScreen` value should be absolute in order to work in a sub-page.
### Android and iOS Quirks

View File

@ -26,7 +26,7 @@ var position = { x: 0, y: 0, width: splashImageWidth, height: splashImageHeight
var localSplash; // the image to display
var localSplashImage;
var bgColor = "#464646";
var imageSrc = 'img/logo.png';
var imageSrc = '/img/logo.png';
var splashScreenDelay = 3000; // in milliseconds
var showSplashScreen = true; // show splashcreen by default
var cordova = require('cordova');

View File

@ -19,11 +19,9 @@
*
*/
/* global win:true */
( function() {
win = null;
var win = null;
module.exports = {
show: function() {