Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
feat(agent): add specific Algolia Places x.x.x agent sent
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo committed Apr 13, 2016
1 parent cae3676 commit d981fd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/places.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import './places.scss';
import EventEmitter from 'events';
import clearIcon from './icons/clear.svg';
import pinIcon from './icons/address.svg';
import version from './version.js';

const hitFormatter = createHitFormatter({
formatAutocompleteSuggestion,
Expand All @@ -29,6 +30,8 @@ export default function places({
);
client.as.setExtraHeader('targetIndexingIndexes', true);

client.as.addAlgoliaAgent += `Algolia Places ${version}`;

// https://github.com/algolia/autocomplete.js#options
const options = {
autoselect: true,
Expand Down

0 comments on commit d981fd6

Please sign in to comment.