adding more details at the getting-started readme and changing react index to use .js config files

This commit is contained in:
biharck committed 2019-04-26 22:20:17 -03:00
1 parent 610aeb1b9a
commit b0d06baf29
3 files changed
+10 -12

No files matched your search

+5 -5
View File
@@ -175,14 +175,14 @@ props.whiteLabelling = {
//
// If you change the JSON config, you need to re-run the command!
const configString = process.env && process.env && process.env.REACT_APP_CONFIG;
if (configString) {
const configJSON = JSON.parse(configString);
if (configJSON.servers) {
props.servers = configJSON.servers;
if (configString.servers) {
props.servers = configString.servers;
}
if (configJSON.oidc) {
props.oidc = configJSON.oidc;
if (configString.oidc) {
props.oidc = configString.oidc;
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import qs from 'query-string';
import qs from 'querystring';
import Viewer from '../connectedComponents/Viewer';
import OHIF from 'ohif-core';