File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
resources/views/livewire/project/shared Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -118,9 +118,8 @@ function flowControlCallback() {
118
118
socket .send (JSON .stringify ({
119
119
message: data
120
120
}));
121
-
122
121
// Type CTRL + D or exit in the terminal
123
- if (data === ' \x04 ' || (data === ' \r ' && stripAnsiCommands (commandBuffer).trim () === ' exit' )) {
122
+ if (data === ' \x04 ' || (data === ' \r ' && stripAnsiCommands (commandBuffer).trim (). includes ( ' exit' ) )) {
124
123
checkIfProcessIsRunningAndKillIt ();
125
124
setTimeout (() => {
126
125
$data .terminalActive = false ;
@@ -215,8 +214,8 @@ function checkIfProcessIsRunningAndKillIt() {
215
214
term .resize (termWidth, termHeight);
216
215
socket .send (JSON .stringify ({
217
216
resize: {
218
- cols: 600 ,
219
- rows: 600
217
+ cols: termWidth ,
218
+ rows: termHeight
220
219
}
221
220
}));
222
221
}
You can’t perform that action at this time.
0 commit comments