Skip to content

Commit

Permalink
feat(app): exposes the instances class variable
Browse files Browse the repository at this point in the history
This will contain the list of algoliasearchZendeskHC instances.
Will allow to investigate on a buggy instance.
  • Loading branch information
Jerska committed Sep 30, 2016
1 parent b69fa1a commit deba6e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/AlgoliasearchZendeskHC.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class AlgoliasearchZendeskHC {
: autocomplete
)(options);

AlgoliasearchZendeskHC.instances.push(this.search);

// once the DOM is initialized
document.addEventListener('DOMContentLoaded', () => {
loadTranslations(options);
Expand All @@ -58,4 +60,6 @@ class AlgoliasearchZendeskHC {
}
}

AlgoliasearchZendeskHC.instances = [];

export default AlgoliasearchZendeskHC;

0 comments on commit deba6e1

Please sign in to comment.