From aee24b18d173c2263fd135107cec0401d29eaf60 Mon Sep 17 00:00:00 2001 From: Franek Date: Fri, 24 May 2024 09:59:22 +0200 Subject: [PATCH] fix: check for command in text input --- js/script.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/script.js b/js/script.js index 248511d..fcfddc0 100644 --- a/js/script.js +++ b/js/script.js @@ -84,4 +84,7 @@ help.addEventListener('click', () => { }) // ignore context menu -document.addEventListener('contextmenu', e => e.preventDefault()); \ No newline at end of file +document.addEventListener('contextmenu', e => e.preventDefault()); + +// check for command in input +if (command?.value) processCommand(command.value); \ No newline at end of file