mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 09:27:24 +00:00
Update xtermFrontend.ts
console error
This commit is contained in:
parent
3d3fcc41b8
commit
7030f562e8
1 changed files with 3 additions and 1 deletions
|
@ -110,7 +110,9 @@ export class XTermFrontend extends Frontend {
|
||||||
let cols = Math.floor(l / actualCellWidth)
|
let cols = Math.floor(l / actualCellWidth)
|
||||||
let rows = Math.floor(i / actualCellHeight)
|
let rows = Math.floor(i / actualCellHeight)
|
||||||
|
|
||||||
this.xterm.resize(cols, rows)
|
if(/[0-9]/gi.test(cols) && /[0-9]/gi.test(rows) ){
|
||||||
|
this.xterm.resize(cols, rows);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// tends to throw when element wasn't shown yet
|
// tends to throw when element wasn't shown yet
|
||||||
|
|
Loading…
Reference in a new issue