mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
Remove console warning when attempting to resize without xterm being fully initialized
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user