mirror of
https://github.com/apache/cordova-plugin-splashscreen.git
synced 2024-10-06 07:42:26 +08:00
CB-11486 (browser) splashScreenDelay now feed through parseInt to ensure it's an integer by the time it's value is passed in to setTimeout() in hide().
This commit is contained in:
parent
d6db9f3459
commit
2db7bac571
@ -97,6 +97,8 @@ function readPreferencesFromCfg(cfg) {
|
||||
}
|
||||
|
||||
splashScreenDelay = cfg.getPreferenceValue('SplashScreenDelay') || splashScreenDelay;
|
||||
splashScreenDelay = parseInt(splashScreenDelay, 10);
|
||||
|
||||
imageSrc = cfg.getPreferenceValue('SplashScreen') || imageSrc;
|
||||
bgColor = cfg.getPreferenceValue('SplashScreenBackgroundColor') || bgColor;
|
||||
splashImageWidth = cfg.getPreferenceValue('SplashScreenWidth') || splashImageWidth;
|
||||
|
Loading…
Reference in New Issue
Block a user