mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-23 04:49:59 +00: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 = () => {
|
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user