From dae1c1669ea42c077c41053a599cf3384e85c3d2 Mon Sep 17 00:00:00 2001 From: Manuel Penschuck Date: Wed, 5 Mar 2014 17:58:35 +0100 Subject: [PATCH] Bugfix regarding non-standard-conform syntax allowed by FF but not Chrome --- web/htdocs/scripts/cts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/htdocs/scripts/cts.js b/web/htdocs/scripts/cts.js index 4a22d6e..12aff90 100644 --- a/web/htdocs/scripts/cts.js +++ b/web/htdocs/scripts/cts.js @@ -1039,7 +1039,8 @@ window.addEvent('load', function() { function id(x) {return x;} -function prettyJSON(obj, indent=""){ +function prettyJSON(obj, indent){ + if (ident==undefined) ident=""; if (obj && obj.toJSON) obj = obj.toJSON(); switch (typeOf(obj)){ -- 2.43.0