web: fix search with spaces

This commit is contained in:
King Kévin 2023-01-30 02:45:56 +01:00
parent 81fd333672
commit 23b83144a8
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}
};