mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Disable chat input when websocket disconnects. Closes #174
This commit is contained in:
parent
da120fd426
commit
5af0afa2a0
@ -123,9 +123,11 @@ export default class Chat extends Component {
|
|||||||
this.setState(newState);
|
this.setState(newState);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
websocketDisconnected() {
|
websocketDisconnected() {
|
||||||
// this.websocket = null;
|
this.setState({
|
||||||
this.disableChat();
|
inputEnabled: false,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
submitChat(content) {
|
submitChat(content) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user