This commit is contained in:
Ginger Wong
2020-08-24 12:34:36 -07:00
parent 2a02b75e42
commit 6457015406
3 changed files with 7 additions and 15 deletions

View File

@@ -56,6 +56,12 @@ export default class Chat extends Component {
}
}
componentWillUnmount() {
if (hasTouchScreen()) {
window.removeEventListener("orientationchange", setVHvar);
}
}
setupWebSocketCallbacks() {
this.websocket = this.props.websocket;
if (this.websocket) {