Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tjandy98 committed May 4, 2023
1 parent 8f21821 commit 12d18ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { addIcons } from "icons";
import {
App,
Notice,
Expand Down Expand Up @@ -31,7 +32,6 @@ export default class RecentNotesPlugin extends Plugin {
await this.loadRecentNotes();

// handles creation of new file and modification to existing file

this.registerEvent(this.app.vault.on("modify", this.savePath));

this.registerEvent(this.app.vault.on("rename", this.renamePath));
Expand All @@ -47,6 +47,7 @@ export default class RecentNotesPlugin extends Plugin {

return this.reviewNotesView;
});
addIcons();

this.addRibbonIcon("file", "View Recent Notes", () => {
this.activateView();
Expand Down

0 comments on commit 12d18ef

Please sign in to comment.