0
0
Fork 0

fix: resolve requested change

This commit is contained in:
Mara 2022-06-11 19:24:16 +02:00
parent 50cc33a604
commit e6f192c7fc
2 changed files with 3 additions and 2 deletions

View file

@ -19,6 +19,7 @@ export default class FileHider extends Plugin {
style: CSSStyleSheet|null = null;
async onload() {
await this.loadSettings();
this.registerEvent(
this.app.workspace.on(`file-menu`, (menu, file) => {

View file

@ -1,4 +1,4 @@
export async function changePathVisibility(path: string, hide: boolean) {
export function changePathVisibility(path: string, hide: boolean) {
let n = document.querySelector(`[data-path="${path}"]`);
if (!n) {
return;