mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 12:38:05 +00:00
Bug fixes for search
This commit is contained in:
@@ -9,6 +9,12 @@ const bootstrapDocsSearch = function() {
|
||||
apiKey: 'b7f43c16886fec97b87981e9e62ef1a5',
|
||||
indexName: window.location.host === 'rancher.com' ? 'prod_docs' : 'dev_docs',
|
||||
routing: true,
|
||||
searchFunction: function(helper) {
|
||||
if (helper.state.query === "") {
|
||||
return;
|
||||
}
|
||||
helper.search();
|
||||
}
|
||||
});
|
||||
|
||||
search.addWidget(
|
||||
|
||||
Reference in New Issue
Block a user