From 3be323fdeecdcd17a01a9d5d5de36a6f131c86ac Mon Sep 17 00:00:00 2001 From: Signynt <67801159+Signynt@users.noreply.github.com> Date: Fri, 29 Nov 2024 11:40:28 +0100 Subject: [PATCH] Fixed reading view --- main.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.ts b/main.ts index c7dec36..8766a89 100644 --- a/main.ts +++ b/main.ts @@ -52,7 +52,7 @@ export default class DynamicFooterPlugin extends Plugin { } private async injectFooterToPreview(view: MarkdownView) { - const container = view.containerEl.querySelector('.markdown-preview-view'); + const container = view.containerEl.querySelector('.mod-footer'); if (!container) return; // Remove existing footer if any @@ -74,8 +74,6 @@ export default class DynamicFooterPlugin extends Plugin { this ); - // Get the content container and append the footer at the bottom - const content = container.querySelector('.cm-sizer'); container.appendChild(footerDiv); }