We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e26c8df commit ef541a6Copy full SHA for ef541a6
app/services/algolia.js
@@ -1,4 +1,3 @@
1
-/* eslint-disable ember/classic-decorator-hooks */
2
import Service from '@ember/service';
3
import algoliasearch from 'algoliasearch';
4
import config from 'ember-api-docs/config/environment';
@@ -33,8 +32,8 @@ export default class AlgoliaService extends Service {
33
32
return this._indices[IndexName];
34
}
35
36
- init() {
37
- super.init(...arguments);
+ constructor() {
+ super(...arguments);
38
this._client = algoliasearch(
39
config.algolia.algoliaId,
40
config.algolia.algoliaKey
0 commit comments