From acc11a857fe3b703c74525875e3eea74b067e878 Mon Sep 17 00:00:00 2001 From: Dian Date: Fri, 31 Jan 2025 23:05:01 +0800 Subject: [PATCH] comment out console logs and example code --- main.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/main.ts b/main.ts index e89b55e..4abbb03 100644 --- a/main.ts +++ b/main.ts @@ -33,12 +33,12 @@ export default class NemesisPlugin extends Plugin { async testFunction() { const activeFile = this.app.workspace.getActiveFile(); - console.log('activeFile') - console.log(activeFile) + // console.log('activeFile') + // console.log(activeFile) if (!activeFile) return null; const fileContent = await this.app.vault.read(activeFile); - console.log(fileContent) + // console.log(fileContent) const nemesisPrompt = `You are a friendly but challenging intellectual nemesis. Review the following content and respond with: 1. Point out potential logical flaws or assumptions @@ -194,14 +194,14 @@ export default class NemesisPlugin extends Plugin { // If the plugin hooks up any global DOM events (on parts of the app that doesn't belong to this plugin) // Using this function will automatically remove the event listener when this plugin is disabled. - this.registerDomEvent(document, "click", (evt: MouseEvent) => { - console.log("click", evt); - }); + // this.registerDomEvent(document, "click", (evt: MouseEvent) => { + // console.log("click", evt); + // }); // When registering intervals, this function will automatically clear the interval when the plugin is disabled. - this.registerInterval( - window.setInterval(() => console.log("setInterval"), 5 * 60 * 1000) - ); + // this.registerInterval( + // window.setInterval(() => console.log("setInterval"), 5 * 60 * 1000) + // ); } onunload() { }