Commit 3461ff7f authored by Akari Labs's avatar Akari Labs

programming is hard

parent 6cc53f5e
......@@ -54,7 +54,7 @@ module.exports = function getDom(window) {
function addChild(child) {
if (Array.isArray(child)) child.forEach(addChild);
else if (child instanceof window.HTMLElement) element.appendChild(child);
else element.append(child.toString());
else if (child) element.append(child.toString());
}
addChild(children);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment