Fix query input trailing spaces

This commit is contained in:
Andrea Cardaci 2020-02-07 00:19:24 +01:00
parent 236f88cd34
commit a59e79e31c

View File

@ -106,7 +106,7 @@
// handle user input
searchBox.addEventListener('input', function () {
var query = searchBox.value;
history.replaceState(null, null, '#' + query);
history.replaceState(null, null, encodeURI('#' + query));
applyFilter();
});