Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
this.devMode = false // Always loads draft
this.token = 'qvOwrwasP7686hfwBsTumAtt'
this.client = new StoryblokClient({
accessToken: this.token,
cache: {
clear: 'auto',
type: 'memory'
}
});
this.query = {}
}
constructor() {
this.devMode = false // Always loads draft
this.token = 'qvOwrwasP7686hfwBsTumAtt'
this.client = new StoryblokClient({
accessToken: this.token,
cache: {
clear: 'auto',
type: 'memory'
}
})
this.query = {}
}
constructor() {
this.devMode = false // If true it always loads draft
this.token = 'vIxSxIvAUpbqD8V7NrciPAtt'
this.client = new StoryblokClient({
accessToken: this.token,
cache: {
clear: 'auto',
type: 'memory'
}
})
this.query = {}
}
install () {
if (!Vue.prototype.$storyapi) {
Vue.prototype.$storyapi = new StoryblokClient({
accessToken: '<%= options.accessToken %>',
cache: {
clear: 'auto',
type: '<%= options.cacheProvider %>'
}
})
}
}
}
install () {
if (!Vue.prototype.$storyapi) {
Vue.prototype.$storyapi = new StoryblokClient(options.client)
}
}
}