Small refactoring
This commit is contained in:
parent
cd96ed0bf2
commit
17a3bcb009
8
main.ts
8
main.ts
|
@ -4,17 +4,19 @@ export default class ExoPlugin extends Plugin {
|
||||||
|
|
||||||
async onload() {
|
async onload() {
|
||||||
this.addRibbonIcon('dice', 'Exo', () => {
|
this.addRibbonIcon('dice', 'Exo', () => {
|
||||||
this.showModal();
|
this.showNotice();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.addCommand({
|
this.addCommand({
|
||||||
id: 'exo-first-notice',
|
id: 'exo-first-notice',
|
||||||
name: 'Shows simple Notice',
|
name: 'Shows simple Notice',
|
||||||
callback: () => {this.showModal()}
|
callback: () => {
|
||||||
|
this.showNotice()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
async showModal(): Promise<void> {
|
async showNotice(): Promise<void> {
|
||||||
new Notice('This is Exocortex!');
|
new Notice('This is Exocortex!');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue