Skip to content

Commit

Permalink
fix: algolia regression - missing options (close #234)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Apr 24, 2018
1 parent 8741a71 commit b19bd89
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/default-theme/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ import NavLinks from './NavLinks.vue'
export default {
components: { SidebarButton, NavLinks, SearchBox, AlgoliaSearchBox },
computed: {
algolia () {
return this.$themeLocaleConfig.algolia || this.$site.themeConfig.algolia || {}
},
isAlgoliaSearch () {
const algolia = this.$themeLocaleConfig.algolia || this.$site.themeConfig.algolia || {}
return algolia && algolia.apiKey && algolia.indexName
return this.algolia && this.algolia.apiKey && this.algolia.indexName
}
}
}
Expand Down

0 comments on commit b19bd89

Please sign in to comment.