Add --settings as a valid query

--setting is kinda weird so I made --settings a valid query.
This commit is contained in:
Reese
2020-09-09 07:27:12 -05:00
committed by GitHub
parent d9ca19ada6
commit ed05c47d99

View File

@@ -84,6 +84,12 @@ function initSearchBar(jsonData) {
// Remove the autocomplete boxes
document.getElementById("search-bar-input-autocomplete-list").style.display = "none";
return
} else if (query == "--settings") {
showSettings()
document.getElementById(searchBarId).value = ""
// Remove the autocomplete boxes
document.getElementById("search-bar-input-autocomplete-list").style.display = "none";
return
}
// If not others, then it's probably a search
@@ -389,4 +395,4 @@ function extractQuickLinks(passedSqrs) {
// Start the autocomplete
autocomplete(document.getElementById("search-bar-input"), this.validQuickLinks);
}
}