Skip to content

Commit

Permalink
Only use debug
Browse files Browse the repository at this point in the history
  • Loading branch information
porsager committed Mar 13, 2020
1 parent eafb9a2 commit 57fc244
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export default function bss({
b.count = 0
b.rules = style && style.textContent && style.textContent.split(b.prefix + '{}') || []
b.debug = false
b.dev = false
b.prefix = prefix
b.properties = properties
b.at = x => ats.unshift(typeof x === 'function' ? x : (v => x[v.slice(1)] || v))
Expand Down Expand Up @@ -130,7 +129,7 @@ export default function bss({

index === 0 ? b.rules.unshift(rule) : b.rules.push(rule)

if (b.dev && style) {
if (b.debug && style) {
style.textContent = b.rules.map(pretty).join('\n')
} else if (style && style.sheet) {
try {
Expand Down

0 comments on commit 57fc244

Please sign in to comment.