mirror of
https://github.com/strapi/strapi.git
synced 2025-08-12 18:53:23 +00:00
commit
f0766e5b7f
@ -55,7 +55,8 @@ export default {
|
||||
components: { SidebarButton, NavLinks, AlgoliaSearchBox, SearchBox},
|
||||
data () {
|
||||
return {
|
||||
linksWrapMaxWidth: null
|
||||
linksWrapMaxWidth: null,
|
||||
isAlpha: false
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
@ -71,14 +72,11 @@ export default {
|
||||
}
|
||||
handleLinksWrapWidth()
|
||||
window.addEventListener('resize', handleLinksWrapWidth, false)
|
||||
this.isAlpha = /documentation\/3.0.0-alpha.x/.test(window.location.href)
|
||||
},
|
||||
computed: {
|
||||
algolia () {
|
||||
return this.$themeLocaleConfig.algolia || this.$site.themeConfig.algolia || {}
|
||||
},
|
||||
|
||||
isAlpha () {
|
||||
return /documentation\/3.0.0-alpha.x/.test(window.location.href)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user