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