summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/Browser/ConsoleWidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Applications/Browser/ConsoleWidget.cpp b/Userland/Applications/Browser/ConsoleWidget.cpp
index 392c4d6f61..6a08ae5b66 100644
--- a/Userland/Applications/Browser/ConsoleWidget.cpp
+++ b/Userland/Applications/Browser/ConsoleWidget.cpp
@@ -45,8 +45,7 @@ ConsoleWidget::ConsoleWidget()
m_input->on_return_pressed = [this] {
auto js_source = m_input->text();
- // FIXME: An is_blank check to check if there is only whitespace would probably be preferable.
- if (js_source.is_empty())
+ if (js_source.is_whitespace())
return;
m_input->add_current_text_to_history();