diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ba1606f..5bd81653 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Bugfix * fix `terminal::login()` when user already authenticated [#980](https://github.com/jcubic/jquery.terminal/issues/980) * improve mobile support +* ignore empty command in Pipe extension [#984](https://github.com/jcubic/jquery.terminal/issues/984) ## 2.44.1 ### Bugfix diff --git a/js/pipe.js b/js/pipe.js index e6f42933..0128e08b 100644 --- a/js/pipe.js +++ b/js/pipe.js @@ -395,7 +395,7 @@ }); } else if (is_function(term_settings.onCommandNotFound)) { term_settings.onCommandNotFound.call(term, command, term); - } else { + } else if (cmd) { error(sprintf(strings(term).commandNotFound, cmd.name)); } } else {