Skip to content

Commit 0b36cd4

Browse files
joshpcauseybomanimc
authored andcommitted
Fixed issue with rocket being launched after the console re-output
1 parent c74fc18 commit 0b36cd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/GitRocketTerminal.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ function detectPushCommand(data) {
1515
exports.middleware = store => next => (action) => {
1616
if (action.type === 'SESSION_ADD_DATA') {
1717
const { data } = action;
18-
if (detectPushCommand(data)) {
18+
// The data length check verifies it is a push, not a duplicate output of the console
19+
if (detectPushCommand(data) && data.length < 1000) {
1920
store.dispatch({
2021
type: 'PUSH_MODE_TOGGLE',
2122
});

0 commit comments

Comments
 (0)