code: function readPreferencesFromCfg(cfg) {
      try {
          var value = cfg.getPreferenceValue('ShowSplashScreen');
          if(typeof value != 'undefined') {
              showSplashScreen = value === 'true';
          }
  
          splashScreenDelay = cfg.getPreferenceValue('SplashScreenDelay') || splashScreenDelay;
          splashScreenDelay = parseInt(splashScreenDelay, 10);
  
          imageSrc = cfg.getPreferenceValue('SplashScreen') || imageSrc;
          bgColor = cfg.getPreferenceValue('SplashScreenBackgroundColor') || bgColor;
          splashImageWidth = cfg.getPreferenceValue('SplashScreenWidth') || splashImageWidth;
          splashImageHeight = cfg.getPreferenceValue('SplashScreenHeight') || splashImageHeight;
          autoHideSplashScreen = cfg.getPreferenceValue('AutoHideSplashScreen') || autoHideSplashScreen;
          autoHideSplashScreen = (autoHideSplashScreen === true || autoHideSplashScreen.toLowerCase() === 'true');
      } catch(e) {
          var msg = '[Browser][SplashScreen] Error occurred on loading preferences from config.xml: ' + JSON.stringify(e);
          console.error(msg);
      }
  }
docs: Reads preferences via ConfigHelper and substitutes default parameters.