From fd6f7c28c95963b2d774aa9ecf00868f29789d27 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Tue, 2 Jan 2024 12:48:18 +0100 Subject: [PATCH] Reduce logging --- web/cm_plugins/iframe_widget.ts | 2 +- web/cm_plugins/markdown_widget.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/cm_plugins/iframe_widget.ts b/web/cm_plugins/iframe_widget.ts index 8d9422d9..0c6f5c64 100644 --- a/web/cm_plugins/iframe_widget.ts +++ b/web/cm_plugins/iframe_widget.ts @@ -58,7 +58,7 @@ export class IFrameWidget extends WidgetType { get estimatedHeight(): number { const cachedHeight = this.client.getCachedWidgetHeight(this.bodyText); - console.log("Calling estimated height", this.bodyText, cachedHeight); + // console.log("Calling estimated height", this.bodyText, cachedHeight); return cachedHeight > 0 ? cachedHeight : 150; } diff --git a/web/cm_plugins/markdown_widget.ts b/web/cm_plugins/markdown_widget.ts index c29e4bf4..aa754f1e 100644 --- a/web/cm_plugins/markdown_widget.ts +++ b/web/cm_plugins/markdown_widget.ts @@ -185,7 +185,7 @@ export class MarkdownWidget extends WidgetType { get estimatedHeight(): number { const cacheItem = this.client.getWidgetCache(this.bodyText); - console.log("Calling estimated height", this.bodyText, cacheItem); + // console.log("Calling estimated height", this.bodyText, cacheItem); return cacheItem ? cacheItem.height : -1; }