mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-14 12:58:39 -09:00
hyperterm: fix race condition
This commit is contained in:
parent
4fdeb59d7e
commit
5d4d76a2fe
1 changed files with 1 additions and 2 deletions
|
|
@ -61,6 +61,7 @@ export default class HyperTerm extends Component {
|
||||||
this.onUpdateAvailable = this.onUpdateAvailable.bind(this);
|
this.onUpdateAvailable = this.onUpdateAvailable.bind(this);
|
||||||
|
|
||||||
document.body.style.backgroundColor = props.config.backgroundColor;
|
document.body.style.backgroundColor = props.config.backgroundColor;
|
||||||
|
this.rpc = new RPC();
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps (props) {
|
componentWillReceiveProps (props) {
|
||||||
|
|
@ -236,8 +237,6 @@ export default class HyperTerm extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount () {
|
componentDidMount () {
|
||||||
this.rpc = new RPC();
|
|
||||||
|
|
||||||
// open a new tab upon mounting
|
// open a new tab upon mounting
|
||||||
this.rpc.once('ready', () => this.requestTab());
|
this.rpc.once('ready', () => this.requestTab());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue