Skip to content

Commit ccd8908

Browse files
committed
Update main.js example
1 parent 1eaf702 commit ccd8908

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import CSSObject from "../CSSObject/CSSObject.js"
22

3-
43
// to show cssobj stylesheet on page
54
let div = document.querySelector('.cssobject')
65
const printJSON = (style) => {
6+
// shows in console
77
console.log(style)
8+
89
let cssjson = JSON.stringify(style, null, ' ')
910
let pre = document.createElement('pre'),
1011
code = document.createElement('code')

0 commit comments

Comments
 (0)