validateConfiguration() {
    if (!this.state.configFileURL) {
      this.setState({loading: false});
    } else {
      request({
        json: true,
        url : this.state.configFileURL
      }).then((data)=> {
        console.log('Configuration loaded');
        this.setState({loading: false, config: data});
      }).catch((err)=> {
        console.warn('Error loading configuration', err);
        this.setState({loading: false, isError: false, config: {}});
      });
    }
  }
// Start the app or load the configuration file
Start the app or load the configuration file
Start the app or load the configuration file
validateConfiguration() {
    if (!this.state.configFileURL) {
      this.setState({loading: false});
    } else {
      request({
        json: true,
        url : this.state.configFileURL
      }).then((data)=> {
        console.log('Configuration loaded');
        this.setState({loading: false, config: data});
      }).catch((err)=> {
        console.warn('Error loading configuration', err);
        this.setState({loading: false, isError: false, config: {}});
      });
    }
  }
validateConfiguration ( ) { if ( ! this . state . configFileURL ) { this . setState ( { loading : false } ) ; } else { request ( { json : true , url : this . state . configFileURL } ) . then ( ( data ) => { console . log ( 'Configuration loaded' ) ; this . setState ( { loading : false , config : data } ) ; } ) . catch ( ( err ) => { console . warn ( 'Error loading configuration' , err ) ; this . setState ( { loading : false , isError : false , config : { } } ) ; } ) ; } }
Start the app or load the configuration file
Start the app or load the configuration file