Slight performance tweaks

This commit is contained in:
Zef Hemel
2023-12-29 20:03:54 +01:00
parent bc78fae5ec
commit 16b8d4ef12
3 changed files with 8 additions and 5 deletions
+4 -1
View File
@@ -54,7 +54,10 @@ export class MarkdownWidget extends WidgetType {
activeWidgets.add(this);
if (!widgetContent) {
div.innerHTML = "";
// div.style.display = "none";
this.client.setWidgetCache(
this.bodyText,
{ height: div.clientHeight, html: "" },
);
return;
}
const lang = buildMarkdown(this.client.system.mdExtensions);