From 08dc5a4f9783a0ca0d9c6b703a883cbab1369c04 Mon Sep 17 00:00:00 2001 From: Johannes Schill Date: Mon, 21 Jan 2019 16:34:59 +0100 Subject: [PATCH] chore: Remove logging and use the updated config param --- public/app/plugins/panel/text/module.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/public/app/plugins/panel/text/module.ts b/public/app/plugins/panel/text/module.ts index 7edd9c3a87e..7d2a0ab0dd0 100644 --- a/public/app/plugins/panel/text/module.ts +++ b/public/app/plugins/panel/text/module.ts @@ -46,9 +46,8 @@ export class TextPanelCtrl extends PanelCtrl { $scope.$watch( renderWhenChanged, _.throttle(() => { - console.log('this.render', new Date()); this.render(); - }, 2000, {trailing: true, leading: true}) + }, 100) ); } @@ -93,9 +92,8 @@ export class TextPanelCtrl extends PanelCtrl { } updateContent(html: string) { - const { sanitizeInput } = config; - html = sanitizeInput ? sanitize(html) : html; - console.log('html', html); + const { disableSanitizeInput } = config; + html = disableSanitizeInput ? html : sanitize(html); try { this.content = this.$sce.trustAsHtml(this.templateSrv.replace(html, this.panel.scopedVars)); } catch (e) {