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`: - + @@ -92,6 +92,7 @@ You can use the following preferences in your `config.xml`: +__Note__: `SplashScreen` value should be absolute in order to work in a sub-page. ### Android and iOS Quirks 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'); 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() {