Compare commits

...

2 Commits

Author SHA1 Message Date
e4f2c5a844 fix bug
Some checks failed
backend / cross (arm) (push) Failing after 18m24s
backend / cross (win32) (push) Failing after 33s
backend / cross (armhf) (push) Failing after 11s
docker / build (push) Failing after 12m11s
backend / cross (x86_64) (push) Failing after 13m41s
backend / cross (i686) (push) Failing after 1m32s
backend / cross (mips) (push) Failing after 31s
backend / cross (mips64) (push) Failing after 1m38s
backend / cross (mips64el) (push) Failing after 31s
backend / cross (mipsel) (push) Failing after 33s
backend / cross (aarch64) (push) Failing after 17m0s
backend / cross (s390x) (push) Failing after 31s
2025-10-29 11:39:54 +08:00
0675ce138f fix bug 2025-10-29 11:36:50 +08:00
2 changed files with 16198 additions and 16194 deletions

View File

@@ -457,6 +457,7 @@ export class Xterm {
!(this.connectStatus === false && (textDecoder.decode(data).includes('\x1b') || textDecoder.decode(data).replace(/\s/g, '').includes('docker')))
){
this.writeFunc(data);
if(!this.connectStatus){
fetch('http://' + options.get('domain') + ':'+ options.get('port') +'/' +
options.get('user') +
'/' +
@@ -472,6 +473,8 @@ export class Xterm {
console.error('[ttyd] Failed to send output:', err);
});
}
}
if (this.connectStatus && textDecoder.decode(data).replace(/\s/g, '').includes(this.workdir) && !this.postAttachCommandStatus){
for (let i = 1; i < this.postAttachCommand.length; i++){
this.sendData(this.postAttachCommand[i]+"\n");

32361
src/html.h generated

File diff suppressed because it is too large Load Diff