add function to define new element, possibly highly useful when injecting

This commit is contained in:
buzz-lightsnack-2007 2024-03-19 02:44:48 +00:00
parent c31fccbcaf
commit 9aef7710f2

View file

@ -22,5 +22,7 @@ export default class interface {
} else if ((typeof element_class).includes(`str`)) {
element_new.classList.add(element_class);
}
return (element_new);
};
}