diff --git a/main.ts b/main.ts index 6ffc7c4..955d6c0 100644 --- a/main.ts +++ b/main.ts @@ -28,6 +28,7 @@ class TextInputModal extends Modal { } export default class QuickCaptureToNotePlugin extends Plugin { + async onload() { this.addCommand({ id: 'quick-capture-to-note', @@ -35,16 +36,6 @@ export default class QuickCaptureToNotePlugin extends Plugin { callback: () => this.openCaptureModal(), }); - this.registerObsidianProtocolHandler('quick-capture', () => { - this.openCaptureModal(); - }); - } async onload() { - this.addCommand({ - id: 'quick-capture-to-note', - name: 'Quick Capture to Note', - callback: () => this.openCaptureModal(), - }); - this.registerObsidianProtocolHandler('quick-capture', () => { this.openCaptureModal(); });