From b84d939487fdecfa409478d7a5d43735eb709fa2 Mon Sep 17 00:00:00 2001 From: Andrea Alberti Date: Sun, 17 Nov 2024 22:09:04 +0100 Subject: [PATCH] Getting the container element of File Explorer --- src/patchFileExplorer.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/patchFileExplorer.ts b/src/patchFileExplorer.ts index 28b5fe3..fd16c68 100644 --- a/src/patchFileExplorer.ts +++ b/src/patchFileExplorer.ts @@ -149,6 +149,8 @@ async function patchFileExplorer(plugin: ImportAttachments) { if(isFileExplorerView(viewInstance)) { viewClass = viewInstance.constructor as FileExplorerViewConstructorType; // Get the class from the instance + // console.log(viewInstance.containerEl); + patchFileExplorerView(plugin,viewClass); patched = true; // we want to apply the monkey-patch once, so we need to break out of the for loop