mirror of
https://github.com/alberti42/obsidian-import-attachments-plus.git
synced 2026-07-22 10:10:24 +00:00
Getting the container element of File Explorer
This commit is contained in:
parent
c34946c506
commit
b84d939487
1 changed files with 2 additions and 0 deletions
|
|
@ -149,6 +149,8 @@ async function patchFileExplorer(plugin: ImportAttachments) {
|
||||||
|
|
||||||
if(isFileExplorerView(viewInstance)) {
|
if(isFileExplorerView(viewInstance)) {
|
||||||
viewClass = viewInstance.constructor as FileExplorerViewConstructorType; // Get the class from the instance
|
viewClass = viewInstance.constructor as FileExplorerViewConstructorType; // Get the class from the instance
|
||||||
|
// console.log(viewInstance.containerEl);
|
||||||
|
|
||||||
patchFileExplorerView(plugin,viewClass);
|
patchFileExplorerView(plugin,viewClass);
|
||||||
patched = true;
|
patched = true;
|
||||||
// we want to apply the monkey-patch once, so we need to break out of the for loop
|
// we want to apply the monkey-patch once, so we need to break out of the for loop
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue