mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 01:17:14 +00:00
don't repatch node-pty on window reload
This commit is contained in:
parent
663da34e6d
commit
c90a5678cf
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
|||
module.exports = function patchPTYModule (path) {
|
||||
const mod = require(path)
|
||||
const oldSpawn = mod.spawn
|
||||
if (mod.patched) {
|
||||
return mod
|
||||
}
|
||||
mod.patched = true
|
||||
mod.spawn = (file, args, opt) => {
|
||||
let terminal = oldSpawn(file, args, opt)
|
||||
let timeout = null
|
||||
|
|
Loading…
Reference in a new issue