mirror of
https://github.com/adiguno/hello-nemesis.git
synced 2026-07-22 05:37:31 +00:00
comment out console logs and example code
This commit is contained in:
parent
82900fac51
commit
acc11a857f
1 changed files with 9 additions and 9 deletions
18
main.ts
18
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() { }
|
||||
|
|
|
|||
Loading…
Reference in a new issue