diff --git a/lib/gui/app/components/safe-webview/safe-webview.jsx b/lib/gui/app/components/safe-webview/safe-webview.jsx index 84eaf6fc..68029356 100644 --- a/lib/gui/app/components/safe-webview/safe-webview.jsx +++ b/lib/gui/app/components/safe-webview/safe-webview.jsx @@ -167,27 +167,6 @@ class SafeWebview extends react.PureComponent { this.session.webRequest.onCompleted(null) } - /** - * @summary Refresh the webview if we are navigating away from the success page - * @param {Object} nextProps - upcoming properties - */ - componentWillReceiveProps (nextProps) { - if (nextProps.refreshNow && !this.props.refreshNow) { - // Reload the page if it hasn't changed, otherwise reset the source URL, - // because reload interferes with 'src' setting, resetting the 'src' attribute - // to what it was was just prior. - if (this.refs.webview.src === this.entryHref) { - this.refs.webview.reload() - } else { - this.refs.webview.src = this.entryHref - } - - this.setState({ - shouldShow: true - }) - } - } - /** * @summary Set the element state to hidden */ diff --git a/lib/gui/app/components/svg-icon/svg-icon.jsx b/lib/gui/app/components/svg-icon/svg-icon.jsx index 38f345e8..5846787a 100644 --- a/lib/gui/app/components/svg-icon/svg-icon.jsx +++ b/lib/gui/app/components/svg-icon/svg-icon.jsx @@ -133,15 +133,6 @@ class SVGIcon extends react.Component { disabled: this.props.disabled }) } - - /** - * @summary Cause a re-render due to changed element properties - * @param {Object} nextProps - the new properties - */ - componentWillReceiveProps (nextProps) { - // This will update the element if the properties change - this.setState(nextProps) - } } SVGIcon.propTypes = { diff --git a/lib/gui/app/index.html b/lib/gui/app/index.html index 2ca922d6..89b4f880 100644 --- a/lib/gui/app/index.html +++ b/lib/gui/app/index.html @@ -38,9 +38,8 @@ ng-class="{ isFinish: state.currentName === 'success' }"> - + +