Add check for null in skooma as well
This commit is contained in:
parent
0366b3822b
commit
9bb5f82302
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,8 @@ const parseArgs = (element, before, ...args) => {
|
|||
element.insertBefore(document.createTextNode(arg), before)
|
||||
else if (arg === undefined)
|
||||
console.warn(`Argument is ${typeof arg}`, element)
|
||||
else if (arg === null)
|
||||
console.warn(`Argument is ${typeof arg}`, element)
|
||||
else if (typeof arg == "function")
|
||||
arg(element)
|
||||
else if ("nodeName" in arg)
|
||||
|
|
Loading…
Reference in a new issue