mirror of
https://github.com/Eugeny/tabby.git
synced 2025-02-05 14:29:47 +08:00
Remove console warning when attempting to resize without xterm being fully initialized
This commit is contained in:
parent
9413c80376
commit
b0f8dd4036
@ -85,7 +85,7 @@ export class XTermFrontend extends Frontend {
|
||||
|
||||
this.resizeHandler = () => {
|
||||
try {
|
||||
if (getComputedStyle(this.xtermCore.element).getPropertyValue('height') !== 'auto') {
|
||||
if (this.xtermCore.element && getComputedStyle(this.xtermCore.element).getPropertyValue('height') !== 'auto') {
|
||||
this.fitAddon.fit()
|
||||
}
|
||||
} catch (e) {
|
||||
|
Loading…
Reference in New Issue
Block a user