From 9ce83a425d2e084797950502b3d0fdd8356cc633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Tue, 12 Nov 2019 15:19:52 +0100 Subject: [PATCH] Fix trueTypeOf null --- static/js/trueTypeOf.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static/js/trueTypeOf.js b/static/js/trueTypeOf.js index eeec8d19..e5171ce4 100644 --- a/static/js/trueTypeOf.js +++ b/static/js/trueTypeOf.js @@ -1,3 +1,8 @@ function trueTypeOf(object){ - return object.constructor.name + if (object==null){ + return "null" + } + else { + return object.constructor.name + } }