diff --git a/src/browser/components/ErrorView.jsx b/src/browser/components/ErrorView.jsx index 631f7784..ea7066d8 100644 --- a/src/browser/components/ErrorView.jsx +++ b/src/browser/components/ErrorView.jsx @@ -3,6 +3,7 @@ const React = require('react'); const PropTypes = require('prop-types'); const {Grid, Row, Col} = require('react-bootstrap'); +const {shell} = require('electron'); function ErrorView(props) { const classNames = ['container', 'ErrorView']; @@ -12,6 +13,10 @@ function ErrorView(props) { if (props.withTab) { classNames.push('ErrorView-with-tab'); } + function handleClick(event) { + event.preventDefault(); + shell.openExternal(props.errorInfo.validatedURL); + } return (
  • {'Your computer is connected to the internet.'}
  • {'The Mattermost URL '} - + {props.errorInfo.validatedURL} {' is correct.'}
  • {'You can reach '} - + {props.errorInfo.validatedURL} {' from a browser window.'}