From: Manuel Penschuck Date: Wed, 5 Mar 2014 16:58:35 +0000 (+0100) Subject: Bugfix regarding non-standard-conform syntax allowed by FF but not Chrome X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=dae1c1669ea42c077c41053a599cf3384e85c3d2;p=daqtools.git Bugfix regarding non-standard-conform syntax allowed by FF but not Chrome --- 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)){