Add check for null in skooma as well

This commit is contained in:
Talia 2022-03-26 12:36:39 +01:00
parent 0366b3822b
commit 9bb5f82302
Signed by: darkwiiplayer
GPG key ID: 7808674088232B3E

View file

@ -42,6 +42,8 @@ const parseArgs = (element, before, ...args) => {
element.insertBefore(document.createTextNode(arg), before) element.insertBefore(document.createTextNode(arg), before)
else if (arg === undefined) else if (arg === undefined)
console.warn(`Argument is ${typeof arg}`, element) console.warn(`Argument is ${typeof arg}`, element)
else if (arg === null)
console.warn(`Argument is ${typeof arg}`, element)
else if (typeof arg == "function") else if (typeof arg == "function")
arg(element) arg(element)
else if ("nodeName" in arg) else if ("nodeName" in arg)