Add check for null in skooma as well

This commit is contained in:
Talia 2022-03-26 12:36:39 +01:00
parent f6556d369a
commit 53a5b95493
Signed by: darkwiiplayer
GPG key ID: 7808674088232B3E

View file

@ -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)