Compare commits
	
		
			2 Commits
		
	
	
		
			66c0fe3ad0
			...
			e4f2c5a844
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| e4f2c5a844 | |||
| 0675ce138f | 
@@ -457,20 +457,23 @@ export class Xterm {
 | 
			
		||||
                        !(this.connectStatus === false && (textDecoder.decode(data).includes('\x1b') || textDecoder.decode(data).replace(/\s/g, '').includes('docker')))
 | 
			
		||||
                    ){
 | 
			
		||||
                        this.writeFunc(data);
 | 
			
		||||
                        fetch('http://' + options.get('domain') + ':'+ options.get('port') +'/' +
 | 
			
		||||
                                options.get('user') +
 | 
			
		||||
                                '/' +
 | 
			
		||||
                                options.get('repo') +
 | 
			
		||||
                                '/devcontainer/output?' +
 | 
			
		||||
                                params, {
 | 
			
		||||
                            method: 'POST',
 | 
			
		||||
                            headers: {
 | 
			
		||||
                                'Content-Type': 'text/plain'
 | 
			
		||||
                            },
 | 
			
		||||
                            body: textDecoder.decode(data),
 | 
			
		||||
                        }).catch(err => {
 | 
			
		||||
                            console.error('[ttyd] Failed to send output:', err);
 | 
			
		||||
                        });
 | 
			
		||||
                        if(!this.connectStatus){
 | 
			
		||||
                            fetch('http://' + options.get('domain') + ':'+ options.get('port') +'/' +
 | 
			
		||||
                            options.get('user') +
 | 
			
		||||
                            '/' +
 | 
			
		||||
                            options.get('repo') +
 | 
			
		||||
                            '/devcontainer/output?' +
 | 
			
		||||
                            params, {
 | 
			
		||||
                                method: 'POST',
 | 
			
		||||
                                headers: {
 | 
			
		||||
                                    'Content-Type': 'text/plain'
 | 
			
		||||
                                },
 | 
			
		||||
                                body: textDecoder.decode(data),
 | 
			
		||||
                            }).catch(err => {
 | 
			
		||||
                                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++){
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										32361
									
								
								src/html.h
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										32361
									
								
								src/html.h
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user