diff --git a/src/views/splash/presentation.jsx b/src/views/splash/presentation.jsx index 37010ccbf..8b9a2fc5f 100644 --- a/src/views/splash/presentation.jsx +++ b/src/views/splash/presentation.jsx @@ -200,28 +200,9 @@ class SplashPresentation extends React.Component { // eslint-disable-line react/ constructor (props) { super(props); bindAll(this, [ - 'handleMessage', 'renderHomepageRows' ]); } - componentDidMount () { - if (this.props.shouldShowEmailConfirmation) window.addEventListener('message', this.handleMessage); - } - componentWillUnmount () { - window.removeEventListener('message', this.handleMessage); - } - handleMessage (e) { - if (e.origin !== window.location.origin) return; - if (e.source !== this.emailConfirmationiFrame.contentWindow) return; - if (e.data === 'resend-done') { - this.props.onHideEmailConfirmationModal(); - } else { - const data = JSON.parse(e.data); - if (data.action === 'leave-page') { - window.location.href = data.uri; - } - } - } renderHomepageRows () { const rows = [ ); }