From b22422f4b89187e70e74592fcb23d6994c0486d2 Mon Sep 17 00:00:00 2001 From: Oleg Aksenov Date: Sun, 3 Oct 2021 18:08:53 +0300 Subject: [PATCH] Comment console.log in sanitizeText This is to avoid console window be flooded with 'security level' messages --- src/diagrams/common/common.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/diagrams/common/common.js b/src/diagrams/common/common.js index 6fcec11e6..263af5cf7 100644 --- a/src/diagrams/common/common.js +++ b/src/diagrams/common/common.js @@ -65,8 +65,7 @@ const sanitizeMore = (text, config) => { }; export const sanitizeText = (text, config) => { - const level = config.securityLevel; - console.log('security level', level); + // console.log('security level', config.securityLevel); if (!text) return text; const txt = DOMPurify.sanitize(sanitizeMore(text, config)); return txt;