From 17a3bcb00924a545a66cc58437d1d4ed56df0142 Mon Sep 17 00:00:00 2001 From: kitelev Date: Mon, 30 Dec 2024 18:05:25 +0500 Subject: [PATCH] Small refactoring --- main.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/main.ts b/main.ts index 50e6805..adb8ee0 100644 --- a/main.ts +++ b/main.ts @@ -1,20 +1,22 @@ -import { Notice, Plugin } from 'obsidian'; +import {Notice, Plugin} from 'obsidian'; export default class ExoPlugin extends Plugin { async onload() { this.addRibbonIcon('dice', 'Exo', () => { - this.showModal(); + this.showNotice(); }); this.addCommand({ - id: 'exo-first-notice', - name: 'Shows simple Notice', - callback: () => {this.showModal()} - }) + id: 'exo-first-notice', + name: 'Shows simple Notice', + callback: () => { + this.showNotice() + } + }) } - async showModal(): Promise { + async showNotice(): Promise { new Notice('This is Exocortex!'); }