cleanup
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user