Preventing urlvars of null breaking connection; Acceping test_mode=1 in URL

This commit is contained in:
James Barnsley
2020-02-13 08:54:12 +13:00
parent b3a15f01d0
commit 3ad0b7994b
8 changed files with 37 additions and 31 deletions

View File

@ -41,8 +41,9 @@ class InitialSetup extends React.Component {
// Check for url-parsed configuration values
const customHost = helpers.queryString('host', search);
const customPort = helpers.queryString('port', search);
if (customHost) this.setState({ host: customHost });
if (customPort) this.setState({ port: customPort });
this.setState({ host: customHost, port: customPort });
uiActions.setWindowTitle('Welcome to Iris');
}