Skip to content

Commit 73b4dd6

Browse files
authored
Merge pull request #861 from nmaggioni/release-2-3-0
Fix CLI commands delay
2 parents 7628f3f + bc0477d commit 73b4dd6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tabs/cli.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ function sendLinesWithDelay(outputArray) {
9696
return (delay, line, index) => {
9797
return new Promise((resolve) => {
9898
helper.timeout.add('CLI_send_slowly', () => {
99-
var processingDelay = self.lineDelayMs;
99+
let processingDelay = TABS.cli.lineDelayMs;
100100
if (line.toLowerCase().startsWith('profile')) {
101-
processingDelay = self.profileSwitchDelayMs;
101+
processingDelay = TABS.cli.profileSwitchDelayMs;
102102
}
103103
const isLastCommand = outputArray.length === index + 1;
104-
if (isLastCommand && self.cliBuffer) {
105-
line = getCliCommand(line, self.cliBuffer);
104+
if (isLastCommand && TABS.cli.cliBuffer) {
105+
line = getCliCommand(line, TABS.cli.cliBuffer);
106106
}
107107
TABS.cli.sendLine(line, () => {
108108
resolve(processingDelay);

0 commit comments

Comments
 (0)