1
0

Reduce logging

This commit is contained in:
Zef Hemel 2024-01-02 12:48:18 +01:00
parent 6b6ab30c92
commit fd6f7c28c9
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ export class IFrameWidget extends WidgetType {
get estimatedHeight(): number { get estimatedHeight(): number {
const cachedHeight = this.client.getCachedWidgetHeight(this.bodyText); 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; return cachedHeight > 0 ? cachedHeight : 150;
} }

View File

@ -185,7 +185,7 @@ export class MarkdownWidget extends WidgetType {
get estimatedHeight(): number { get estimatedHeight(): number {
const cacheItem = this.client.getWidgetCache(this.bodyText); 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; return cacheItem ? cacheItem.height : -1;
} }