deduplication

This commit is contained in:
Sparsh Yadav 2023-04-11 17:23:51 +05:30
parent fd19736486
commit f646d16c21

11
main.ts
View file

@ -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();
});