web: fix search with spaces
This commit is contained in:
parent
81fd333672
commit
23b83144a8
|
@ -25,8 +25,8 @@ function search()
|
|||
let xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', last_search, true);
|
||||
xhr.onload = function() {
|
||||
if (this.responseURL.endsWith(last_search)) {
|
||||
parts = JSON.parse(this.response)
|
||||
if (decodeURI(this.responseURL).endsWith(last_search)) {
|
||||
parts = JSON.parse(this.response);
|
||||
results();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue