From b4f83048e7d8b4094cde1bb2504d787d180b5889 Mon Sep 17 00:00:00 2001 From: Asad Dhamani Date: Thu, 22 Jul 2021 15:41:54 +0530 Subject: [PATCH] Update main.ts --- main.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/main.ts b/main.ts index 525a2b9..6f58815 100644 --- a/main.ts +++ b/main.ts @@ -24,11 +24,11 @@ export default class MyPlugin extends Plugin { await this.loadSettings(); - this.addRibbonIcon("link", "Rich Links", () => { - new Notice("This is a notice!"); - }); +// this.addRibbonIcon("link", "Rich Links", () => { +// new Notice("This is a notice!"); +// }); - this.addStatusBarItem().setText("Status Bar Text"); +// this.addStatusBarItem().setText("Status Bar Text"); // this.addCommand({ // id: 'open-sample-modal', @@ -68,17 +68,17 @@ export default class MyPlugin extends Plugin { // this.addSettingTab(new SampleSettingTab(this.app, this)); - this.registerCodeMirror((cm: CodeMirror.Editor) => { - console.log("codemirror", cm); - }); +// this.registerCodeMirror((cm: CodeMirror.Editor) => { +// console.log("codemirror", cm); +// }); - this.registerDomEvent(document, "click", (evt: MouseEvent) => { - console.log("click", evt); - }); +// this.registerDomEvent(document, "click", (evt: MouseEvent) => { +// console.log("click", evt); +// }); - this.registerInterval( - window.setInterval(() => console.log("setInterval"), 5 * 60 * 1000) - ); +// this.registerInterval( +// window.setInterval(() => console.log("setInterval"), 5 * 60 * 1000) +// ); } onunload() { @@ -106,7 +106,7 @@ export default class MyPlugin extends Plugin { }).then((res) => { const data = JSON.parse(res); const imageLink = data.links[0].href || ''; - console.log("res: ", res); +// console.log("res: ", res); editor.replaceSelection(`