CB-10650 Non-index content.src causes Splashscreen to be not displayed on browser
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/commit/85015949 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/tree/85015949 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/diff/85015949 Branch: refs/heads/master Commit: 850159490c4b0e90e5a64287ddda689dbb577084 Parents: 5ea854d Author: daserge <[email protected]> Authored: Fri Feb 19 12:46:29 2016 +0300 Committer: daserge <[email protected]> Committed: Fri Feb 19 16:10:17 2016 +0300 ---------------------------------------------------------------------- README.md | 3 ++- src/browser/SplashScreenProxy.js | 2 +- src/tizen/SplashScreenProxy.js | 4 +--- 3 files changed, 4 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/85015949/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 8fe3707..e79ae97 100644 --- a/README.md +++ b/README.md @@ -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 http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/85015949/src/browser/SplashScreenProxy.js ---------------------------------------------------------------------- diff --git a/src/browser/SplashScreenProxy.js b/src/browser/SplashScreenProxy.js index 68843ff..6cf9309 100644 --- a/src/browser/SplashScreenProxy.js +++ b/src/browser/SplashScreenProxy.js @@ -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'); http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/85015949/src/tizen/SplashScreenProxy.js ---------------------------------------------------------------------- diff --git a/src/tizen/SplashScreenProxy.js b/src/tizen/SplashScreenProxy.js index e2eb36b..06c0697 100644 --- a/src/tizen/SplashScreenProxy.js +++ b/src/tizen/SplashScreenProxy.js @@ -19,11 +19,9 @@ * */ -/* global win:true */ - ( function() { -win = null; +var win = null; module.exports = { show: function() { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
