From cd518fb06593ef5bd5baae77f1e6edd0541511da Mon Sep 17 00:00:00 2001 From: minjaesong Date: Tue, 24 Nov 2020 21:28:08 +0900 Subject: [PATCH] command.js: hitting return key with empty string wont error out anymore --- assets/tvdos/bin/command.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/tvdos/bin/command.js b/assets/tvdos/bin/command.js index 3d760d7..0ee0310 100644 --- a/assets/tvdos/bin/command.js +++ b/assets/tvdos/bin/command.js @@ -268,6 +268,7 @@ shell.execute = function(line) { if (0 == line.size) return; let tokens = shell.parse(line); let cmd = tokens[0]; + if (cmd === undefined || cmd === '') return 0; // handle Ctrl-C if (con.hitterminate()) return 1;