src/init.js
function (response, suppliedConfig) {
    var remoteConfig = response.data
    // streamline naming of object keys
    if (remoteConfig.id) {
      remoteConfig.project_id = remoteConfig.id
      delete remoteConfig.id
    }
    if (remoteConfig.slug) {
      remoteConfig.project_slug = remoteConfig.slug
      delete remoteConfig.slug
    }
    // merge with supplied config for overwriting settings
    var mergedConfig = $.extend(true, {}, remoteConfig, suppliedConfig);
    utils.logDebug(['Remote config:', remoteConfig]);
    startWithConfig(mergedConfig)
  }
function (response, suppliedConfig) {
    var remoteConfig = response.data
    // streamline naming of object keys
    if (remoteConfig.id) {
      remoteConfig.project_id = remoteConfig.id
      delete remoteConfig.id
    }
    if (remoteConfig.slug) {
      remoteConfig.project_slug = remoteConfig.slug
      delete remoteConfig.slug
    }
    // merge with supplied config for overwriting settings
    var mergedConfig = $.extend(true, {}, remoteConfig, suppliedConfig);
    utils.logDebug(['Remote config:', remoteConfig]);
    startWithConfig(mergedConfig)
  }
function ( response , suppliedConfig ) { var remoteConfig = response . data // streamline naming of object keys if ( remoteConfig . id ) { remoteConfig . project_id = remoteConfig . id delete remoteConfig . id } if ( remoteConfig . slug ) { remoteConfig . project_slug = remoteConfig . slug delete remoteConfig . slug } // merge with supplied config for overwriting settings var mergedConfig = $ . extend ( true , { } , remoteConfig , suppliedConfig ) ; utils . logDebug ( [ 'Remote config:' , remoteConfig ] ) ; startWithConfig ( mergedConfig ) }
Process retrieved project config and start
Process retrieved project config and start