Fix mobile experience

This commit is contained in:
Andrea Cardaci 2018-09-17 16:21:38 +02:00
parent b2e3b7ccf8
commit ad1f052edb

View File

@ -93,7 +93,6 @@
filter(query);
if (query) {
searchBox.value = query;
searchBox.focus();
}
}
@ -107,7 +106,8 @@
// handle user input
searchBox.addEventListener('input', function () {
var query = searchBox.value;
location.hash = query;
history.replaceState(null, null, '#' + query);
applyFilter();
});
// handle shortcuts