mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 18:29:03 +00:00
Use more variables
This commit is contained in:
@@ -64,11 +64,12 @@ module.exports = React.createClass({
|
|||||||
this.nativePatterns = {};
|
this.nativePatterns = {};
|
||||||
if (this.props.config.networks) {
|
if (this.props.config.networks) {
|
||||||
for (const network of Object.keys(this.props.config.networks)) {
|
for (const network of Object.keys(this.props.config.networks)) {
|
||||||
if (this.props.config.networks[network].portalRoomPattern) {
|
const network_info = this.props.config.networks[network];
|
||||||
this.portalRoomPatterns[network] = new RegExp(this.props.config.networks[network].portalRoomPattern);
|
if (network_info.portalRoomPattern) {
|
||||||
|
this.portalRoomPatterns[network] = new RegExp(network_info.portalRoomPattern);
|
||||||
}
|
}
|
||||||
if (this.props.config.networks[network].nativePattern) {
|
if (network_info.nativePattern) {
|
||||||
this.nativePatterns[network] = new RegExp(this.props.config.networks[network].nativePattern);
|
this.nativePatterns[network] = new RegExp(network_info.nativePattern);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user