mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 17:16:03 +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 = () => {
|
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) {
|
||||||
|
Reference in New Issue
Block a user