We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 538e436 commit 74338fdCopy full SHA for 74338fd
1 file changed
cr.js
@@ -1,6 +1,6 @@
1
export const cr = (tag, parent, cls) => {
2
const c = document.createElement(tag);
3
- if (cls) t.className = cls;
+ if (cls) c.className = cls;
4
if (parent) parent.appendChild(c);
5
return c;
6
};
0 commit comments