Remove console warning when attempting to resize without xterm being fully initialized

This commit is contained in:
Austin Warren 2019-07-16 17:47:11 -07:00
parent 9413c80376
commit b0f8dd4036

View File

@ -85,7 +85,7 @@ export class XTermFrontend extends Frontend {
this.resizeHandler = () => { this.resizeHandler = () => {
try { try {
if (getComputedStyle(this.xtermCore.element).getPropertyValue('height') !== 'auto') { if (this.xtermCore.element && getComputedStyle(this.xtermCore.element).getPropertyValue('height') !== 'auto') {
this.fitAddon.fit() this.fitAddon.fit()
} }
} catch (e) { } catch (e) {