From 53a5b95493d3273a6b1a696eec870b1acd068a51 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Sat, 26 Mar 2022 12:36:39 +0100 Subject: [PATCH] Add check for null in skooma as well --- skooma.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/skooma.js b/skooma.js index de71eaa..356fab4 100644 --- a/skooma.js +++ b/skooma.js @@ -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)