Skip to content

Commit

Permalink
fix: use module options instead of env for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
mercs600 committed Feb 8, 2021
1 parent 9ac31c3 commit 05c671d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ export default {
beforeLocaleChange: () => null
},
registerComponents: true,
registerLayouts: true
registerLayouts: true,
debug: false
}
4 changes: 2 additions & 2 deletions lib/templates/components/content/CeDynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
default: -1
}
},
render(createElement, ctx) {
render(createElement) {
const createComponent = () => {
// content element components are registered in CamelCase like "CeMyComponent",
// but the type is coming as "my_component" so we have to transform the name and the tag
Expand Down Expand Up @@ -59,7 +59,7 @@ export default {
})
}

if (process.env.debug) {
if (this.$nuxt.$typo3.options.debug) {
return createElement('ce-debug', { props: this.data }, [
createComponent()
])
Expand Down

0 comments on commit 05c671d

Please sign in to comment.