Skip to content

Commit 7c92eab

Browse files
committed
Merge branch 'master' into OSS-readmes
2 parents 5e240c1 + fd8f3c5 commit 7c92eab

File tree

3 files changed

+2537
-2356
lines changed

3 files changed

+2537
-2356
lines changed

js/algolia/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { html } from 'htm/preact';
22
import algoliasearch from 'algoliasearch/lite';
3-
import { autocomplete, getAlgoliaResults, highlightHit } from '@algolia/autocomplete-js';
3+
import { autocomplete, getAlgoliaHits, highlightHit } from '@algolia/autocomplete-js';
44
import {createAlgoliaInsightsPlugin} from '@algolia/autocomplete-plugin-algolia-insights';
55
import insightsClient from 'search-insights';
66

@@ -46,7 +46,7 @@ function initAutocomplete(item){
4646
return itemUrl;
4747
},
4848
getItems() {
49-
return getAlgoliaResults({
49+
return getAlgoliaHits({
5050
searchClient,
5151
queries: [
5252
{
@@ -91,4 +91,4 @@ function initAutocomplete(item){
9191

9292
}
9393

94-
locations.forEach(initAutocomplete);
94+
locations.forEach(initAutocomplete);

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"scripts": {
1414
"develop": "bundle exec jekyll clean && webpack --mode production && JEKYLL_ENV=testing bundle exec jekyll build --trace -V",
1515
"develop-inc": "webpack --mode production && JEKYLL_ENV=testing bundle exec jekyll build --trace -V -I"
16-
},
16+
17+
},
1718
"devDependencies": {
1819
"@babel/cli": "^7.6.0",
1920
"@babel/core": "^7.6.0",

0 commit comments

Comments
 (0)