Skip to content

Commit 74338fd

Browse files
committed
fix bug
1 parent 538e436 commit 74338fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const cr = (tag, parent, cls) => {
22
const c = document.createElement(tag);
3-
if (cls) t.className = cls;
3+
if (cls) c.className = cls;
44
if (parent) parent.appendChild(c);
55
return c;
66
};

0 commit comments

Comments
 (0)