From f2641bc0ee63529c730c8d1d9c2fd309ca3c6635 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 20 Apr 2020 17:57:25 +0200 Subject: [PATCH] Fix initial marker --- www/code/markers.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/code/markers.js b/www/code/markers.js index 9a320dd6c..b8817e1e6 100644 --- a/www/code/markers.js +++ b/www/code/markers.js @@ -85,6 +85,10 @@ define([ }; var setAuthorMarks = function (Env, authormarks) { + if (!Env.enabled) { + Env.authormarks = {}; + return; + } authormarks = authormarks || {}; if (!authormarks.marks) { authormarks.marks = Util.clone(DEFAULT.marks); } if (!authormarks.authors) { authormarks.authors = Util.clone(DEFAULT.authors); } @@ -675,7 +679,6 @@ define([ f = console[level]; } if (logObject) { return void f(obj); } - f(JSON.stringify(obj)); }; }