From 841f00f49eb25f568a26b41662b968cc60145a25 Mon Sep 17 00:00:00 2001 From: Cade Scroggins Date: Mon, 1 Feb 2016 10:33:19 -0800 Subject: [PATCH] only clear input on ? --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 11558f7..006d0b8 100644 --- a/index.html +++ b/index.html @@ -129,6 +129,7 @@ }); Commander.searchHelp.innerHTML = helpMessage; + Commander.searchText.value = ''; } else { Commander.location = 'https://www.google.com/search?q=' + q; @@ -139,7 +140,6 @@ window.location.href = Commander.location; } - Commander.searchText.value = ''; e.preventDefault(); } };