Skip to content

Commit

Permalink
fix: fix wrong plugin dir path
Browse files Browse the repository at this point in the history
  • Loading branch information
observerw committed Jul 6, 2024
1 parent fc93479 commit 44d7478
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/lang/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,12 @@ type Paths = {
};

abstract class Loader<T> {
protected _plugin: CodeLinkPlugin;

constructor(plugin: CodeLinkPlugin) {
this._plugin = plugin;
}
constructor(protected _plugin: CodeLinkPlugin) {}

protected get _relBasePath(): string {
const configDir = this._plugin.app.vault.configDir;
const pluginId = this._plugin.manifest.id;
const relPath = `${configDir}/plugins/obsidian-${pluginId}`;
const relPath = `${configDir}/plugins/${pluginId}`;

return relPath;
}
Expand Down

0 comments on commit 44d7478

Please sign in to comment.