Skip to content
This repository was archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
fix: correct hostname regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Apr 26, 2019
1 parent 852260f commit 33e5a3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/BxAppBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ import MapIcon from '@material-ui/icons/Map';
import MoreIcon from '@material-ui/icons/MoreVert';
import Switch from '@material-ui/core/Switch';


class BxAppBar extends React.Component {
state = {
anchorEl: null,
mobileMoreAnchorEl: null,
};

handleDashboard = event => {
const matches = window.location.hostname.match('([.*]).testnet.solana.com');
let url = 'https://metrics.solana.com:3000/d/testnet-edge/testnet-monitor-edge?refresh=60s';
const matches = window.location.hostname.match('(.*).testnet.solana.com');
let url =
'https://metrics.solana.com:3000/d/testnet-edge/testnet-monitor-edge?refresh=60s';
if (matches) {
const testnet = matches[1];
url += `&var-testnet=testnet-${testnet}`;
Expand Down

0 comments on commit 33e5a3d

Please sign in to comment.