mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: update resize function call to use previewMode ensuring resize when switched to code
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
renderedMarkdown = await parseMarkdown(content, false);
|
||||
}
|
||||
previewMode = toPreview;
|
||||
requestAnimationFrame(() => resize(true));
|
||||
requestAnimationFrame(() => resize(previewMode));
|
||||
}
|
||||
|
||||
function resize(markdown: boolean = false) {
|
||||
|
||||
Reference in New Issue
Block a user