simplify foldernav mounting code
This commit is contained in:
parent
0d874a7cf1
commit
9238099746
|
|
@ -87,8 +87,5 @@ const FsItemView = (tree: FolderTree): HTMLElement | string => {
|
||||||
// // );
|
// // );
|
||||||
};
|
};
|
||||||
|
|
||||||
// Mount the folder tree view reactively to the nav
|
// Mount the folder tree view to the nav
|
||||||
const nav = document.querySelector("aside nav");
|
van.add(document.querySelector("aside nav"), FolderTreeView);
|
||||||
if (nav) {
|
|
||||||
van.add(nav, () => FolderTreeView());
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue