Skip to content

Commit

Permalink
Update utils.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
themagickoala authored Oct 9, 2023
1 parent 37f9af1 commit 951237d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function elementChildren(element, selector = '') {

function createElement(tag, classes = []) {
const el = document.createElement(tag);
el.classList.add(...(Array.isArray(classes) ? classes : [classes]));
el.classList.add(...(Array.isArray(classes) ? classes : classes.split(' '));
return el;
}
function elementOffset(el) {
Expand Down

0 comments on commit 951237d

Please sign in to comment.