Skip to content

Commit

Permalink
suggestUrl null fix
Browse files Browse the repository at this point in the history
Found while investigating issue #48. Not that this helps resolve issue #48 unfortunately.
  • Loading branch information
ChrisNZL committed Jun 13, 2019
1 parent f8c6f4a commit 425f742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fauxbar/js/fauxbar-1.js
Original file line number Diff line number Diff line change
Expand Up @@ -2089,7 +2089,7 @@ function getSearchSuggestions(dontActuallyGet) {
// Doing it this way so that it's more streamlined here, rather than me trying to worry about dealing with asynchronus results; I think it'd be messier. This way seems cleaner.
var suggestUrl = window.keywordEngine ? window.keywordEngine.suggestUrl : $('#opensearchmenu .menuitem[shortname="'+str_replace('"','"',window.openSearchShortname)+'"]').attr("suggesturl");
var actualSuggestUrl = "http://0.0.0.0/";
if (((!window.keywordEngine && localStorage.option_showjsonsuggestions == 1) || (window.keywordEngine && localStorage.option_showSuggestionsViaKeyword == 1)) && suggestUrl != "null" && suggestUrl != "" && suggestUrl.length > 0) {
if (((!window.keywordEngine && localStorage.option_showjsonsuggestions == 1) || (window.keywordEngine && localStorage.option_showSuggestionsViaKeyword == 1)) && suggestUrl && suggestUrl != "null" && suggestUrl != "" && suggestUrl.length > 0) {
actualSuggestUrl = suggestUrl;
}
var osVal = window.keywordEngine && $("#awesomeinput:focus").length ? $("#awesomeinput").val() : $("#opensearchinput").val();
Expand Down

0 comments on commit 425f742

Please sign in to comment.