diff --git a/web/src/js/components/ProxyApp.jsx b/web/src/js/components/ProxyApp.jsx index 8dc4c7e02..f6b138b33 100644 --- a/web/src/js/components/ProxyApp.jsx +++ b/web/src/js/components/ProxyApp.jsx @@ -15,7 +15,7 @@ class ProxyAppMain extends Component { window.addEventListener('keydown', this.props.onKeyDown); } - UNSAFE_componentWillUnmount() { + componentWillUnmount() { window.removeEventListener('keydown', this.props.onKeyDown); }