CB-10650 Non-index content.src causes Splashscreen to be not displayed on browser
This commit is contained in:
parent
5ea854d8c3
commit
850159490c
@ -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`:
|
You can use the following preferences in your `config.xml`:
|
||||||
|
|
||||||
<platform name="browser">
|
<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="SplashScreenDelay" value="3000" /> <!-- defaults to "3000" -->
|
||||||
<preference name="SplashScreenBackgroundColor" value="green" /> <!-- defaults to "#464646" -->
|
<preference name="SplashScreenBackgroundColor" value="green" /> <!-- defaults to "#464646" -->
|
||||||
<preference name="ShowSplashScreen" value="false" /> <!-- defaults to "true" -->
|
<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" -->
|
<preference name="SplashScreenHeight" value="300" /> <!-- defaults to "200" -->
|
||||||
</platform>
|
</platform>
|
||||||
|
|
||||||
|
__Note__: `SplashScreen` value should be absolute in order to work in a sub-page.
|
||||||
|
|
||||||
### Android and iOS Quirks
|
### Android and iOS Quirks
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ var position = { x: 0, y: 0, width: splashImageWidth, height: splashImageHeight
|
|||||||
var localSplash; // the image to display
|
var localSplash; // the image to display
|
||||||
var localSplashImage;
|
var localSplashImage;
|
||||||
var bgColor = "#464646";
|
var bgColor = "#464646";
|
||||||
var imageSrc = 'img/logo.png';
|
var imageSrc = '/img/logo.png';
|
||||||
var splashScreenDelay = 3000; // in milliseconds
|
var splashScreenDelay = 3000; // in milliseconds
|
||||||
var showSplashScreen = true; // show splashcreen by default
|
var showSplashScreen = true; // show splashcreen by default
|
||||||
var cordova = require('cordova');
|
var cordova = require('cordova');
|
||||||
|
@ -19,11 +19,9 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* global win:true */
|
|
||||||
|
|
||||||
( function() {
|
( function() {
|
||||||
|
|
||||||
win = null;
|
var win = null;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
show: function() {
|
show: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user