Skip to content

Commit

Permalink
Update ObsidianZoomPlugin.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
vslinko authored Jan 14, 2022
1 parent 387e65e commit a738ef4
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/ObsidianZoomPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Notice, Plugin, addIcon } from "obsidian";
import { Plugin, addIcon } from "obsidian";

import { Feature } from "./features/Feature";
import { HeaderNavigationFeature } from "./features/HeaderNavigationFeature";
Expand Down Expand Up @@ -90,14 +90,4 @@ export default class ObsidianZoomPlugin extends Plugin {
await feature.unload();
}
}

private isLegacyEditorEnabled() {
const config: { legacyEditor: boolean } = {
legacyEditor: true,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
...(this.app.vault as any).config,
};

return config.legacyEditor;
}
}

0 comments on commit a738ef4

Please sign in to comment.