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:
Peter (Somogyvari) Metz 2016-06-26 11:41:44 +01:00 committed by Alexander Sorokin
parent d6db9f3459
commit 2db7bac571

View File

@ -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;