Skip to content

Commit

Permalink
fix: debug string format
Browse files Browse the repository at this point in the history
  • Loading branch information
gongzili456 committed Sep 1, 2021
1 parent 914c092 commit 1d8f9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module.exports = function (env) {
const log = console.log

return function () {
log.apply(this, [env, ...arguments])
log.apply(this, ['%c' + arguments[0], 'color: #bada55', ...[].slice.call(arguments, 1)])
}
}

0 comments on commit 1d8f9f9

Please sign in to comment.