only clear input on ?

This commit is contained in:
Cade Scroggins 2016-02-01 10:33:19 -08:00
parent 88cb8cc14b
commit 841f00f49e

View file

@ -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();
}
};