diff --git a/public/partdb.js b/public/partdb.js index 77fee7b..2e52dbd 100644 --- a/public/partdb.js +++ b/public/partdb.js @@ -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(); } };