Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
fix: debug condition
Browse files Browse the repository at this point in the history
  • Loading branch information
raminjafary committed Oct 3, 2020
1 parent 8d3c6f3 commit dede5e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<nuxt-link to="/todo">
todo
</nuxt-link>
<cache :cache="{ id: 'title', lastUpdated: new Date().toISOString() }">
<cache :cache="{ id: 'title', lastUpdated: '2020-10-03T17:55:53.793Z' }">
<Title />
</cache>
</div>
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { namespace, debug } = options
export default (context, inject) => {
inject(namespace, {
log () {
if (!debug) {
if (debug) {
logger.info(options)
} else {
logger.error('You should first set module `debug` option in nuxt.config.js')
Expand Down

0 comments on commit dede5e1

Please sign in to comment.