mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-17 05:58:41 -09:00
hyperterm: cleanup
This commit is contained in:
parent
5d4d76a2fe
commit
55dea3037b
1 changed files with 6 additions and 6 deletions
|
|
@ -61,7 +61,6 @@ 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) {
|
||||||
|
|
@ -145,10 +144,6 @@ export default class HyperTerm extends Component {
|
||||||
this.rpc.emit('quit and install');
|
this.rpc.emit('quit and install');
|
||||||
}
|
}
|
||||||
|
|
||||||
closeUpdateIndicator () {
|
|
||||||
// @TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
openExternal (ev) {
|
openExternal (ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
this.rpc.emit('open external', { url: ev.target.href });
|
this.rpc.emit('open external', { url: ev.target.href });
|
||||||
|
|
@ -156,7 +151,10 @@ export default class HyperTerm extends Component {
|
||||||
|
|
||||||
requestTab () {
|
requestTab () {
|
||||||
// we send the hterm default size
|
// we send the hterm default size
|
||||||
this.rpc.emit('new', { cols: this.state.cols, rows: this.state.rows });
|
this.rpc.emit('new', {
|
||||||
|
cols: this.state.cols,
|
||||||
|
rows: this.state.rows
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
closeActiveTab () {
|
closeActiveTab () {
|
||||||
|
|
@ -237,6 +235,8 @@ 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