Getting the container element of File Explorer

This commit is contained in:
Andrea Alberti 2024-11-17 22:09:04 +01:00
parent c34946c506
commit b84d939487

View file

@ -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