Skip to content

Commit

Permalink
fix: fixes errors appearing in console due to API not being instantia…
Browse files Browse the repository at this point in the history
…ted when checking
  • Loading branch information
chhoumann committed Nov 3, 2024
1 parent 02ed9e3 commit c568704
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ export default class PodNotes extends Plugin implements IPodNotes {

this.transcriptionService = new TranscriptionService(this);

this.api = new API();

this.addCommand({
id: "podnotes-show-leaf",
name: "Show PodNotes",
Expand Down Expand Up @@ -270,7 +272,6 @@ export default class PodNotes extends Plugin implements IPodNotes {

this.registerView(VIEW_TYPE, (leaf: WorkspaceLeaf) => {
this.view = new MainView(leaf, this);
this.api = new API();
return this.view;
});

Expand Down

0 comments on commit c568704

Please sign in to comment.