diff --git a/app/hyperterm.js b/app/hyperterm.js index 5c8a409e..a0255b11 100644 --- a/app/hyperterm.js +++ b/app/hyperterm.js @@ -7,7 +7,7 @@ import shallowCompare from 'react-addons-shallow-compare'; import React, { Component } from 'react'; export default class HyperTerm extends Component { - constructor () { + constructor (props) { super(); this.state = { cols: null, @@ -24,7 +24,7 @@ export default class HyperTerm extends Component { fontSizeIndicatorShowing: false, dismissedUpdate: false, updateVersion: null, - fontSize: 12 + fontSize: props.config.fontSize }; // we set this to true when the first tab @@ -56,6 +56,12 @@ export default class HyperTerm extends Component { this.onUpdateAvailable = this.onUpdateAvailable.bind(this); } + componentWillReceiveProps (props) { + if (props.config.fontSize !== this.props.config.fontSize) { + this.changeFontSize(props.config.fontSize); + } + } + render () { return