Skip to content

Commit

Permalink
update search.js
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMicronaut committed Jun 13, 2021
1 parent 09c07a3 commit de816ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion assets/js/plugins/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ function toggleLoadingClass() {
* @return null
*/
function getSearchResults(callbackFunction) {
$.get(BASE_URL + jsonFeedUrl, callbackFunction, 'json');
var url = location.protocol+'//'+location.hostname+(location.port ? ':'+location.port: '');
$.get(url + jsonFeedUrl, callbackFunction, 'json');
}


Expand Down
Loading

0 comments on commit de816ff

Please sign in to comment.