Skip to content

Commit b84d939

Browse files
committed
Getting the container element of File Explorer
1 parent c34946c commit b84d939

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/patchFileExplorer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ async function patchFileExplorer(plugin: ImportAttachments) {
149149

150150
if(isFileExplorerView(viewInstance)) {
151151
viewClass = viewInstance.constructor as FileExplorerViewConstructorType; // Get the class from the instance
152+
// console.log(viewInstance.containerEl);
153+
152154
patchFileExplorerView(plugin,viewClass);
153155
patched = true;
154156
// we want to apply the monkey-patch once, so we need to break out of the for loop

0 commit comments

Comments
 (0)