Added null check

This commit is contained in:
Steffen Schaefer
2018-01-08 17:24:18 +01:00
parent d25e671452
commit 4ad3a50772
+1 -1
View File
@@ -21,7 +21,7 @@
function handleSearch() {
var searchUrl = "https://www.sapsailing.com/gwt/Home.html#SearchResultPlace:";
var searchBox = document.getElementById("searchBox");
if (searchBox != null) {
if (searchBox && searchBox.value) {
searchUrl += searchBox.value;
}
window.location.href = searchUrl;