diff --git a/MyModal.ts b/MyModal.ts index c87cc70..33d2912 100644 --- a/MyModal.ts +++ b/MyModal.ts @@ -27,7 +27,7 @@ export class MyModal extends Modal { contentEl.createEl("h2", { text: "Daily Refresher" }); this.summaries?.forEach((note) => { - const noteName = note.name.replace(/\.md$/, ""); // FIX THIS + const noteName = note.name.replace(/\.md$/, ""); contentEl.createEl("h3", { text: noteName }); contentEl.createEl("p", { text: note.summary }); }); diff --git a/main.ts b/main.ts index 2db3eb9..f2e2301 100644 --- a/main.ts +++ b/main.ts @@ -10,7 +10,7 @@ interface MyPluginSettings { } const DEFAULT_SETTINGS: MyPluginSettings = { - folderPath: "School", + folderPath: "", apiKey: "", }; @@ -38,7 +38,6 @@ export default class MyPlugin extends Plugin { onunload() {} async getNotesFromFolder(folderPath: string): Promise { - console.log("ehll0"); const folder = this.app.vault.getAbstractFileByPath(folderPath); const notes: TFile[] = [];