change wording of menu item

This commit is contained in:
Maxime Cannoodt 2022-07-11 11:28:01 +02:00
parent 4781de54ea
commit 94e4a527fb

View File

@ -72,7 +72,7 @@ export default class NoteSharingPlugin extends Plugin {
if (file instanceof TFile && file.extension === "md") { if (file instanceof TFile && file.extension === "md") {
menu.addItem((item) => { menu.addItem((item) => {
item.setIcon("paper-plane-glyph"); item.setIcon("paper-plane-glyph");
item.setTitle("Share note"); item.setTitle("Share note online");
item.onClick(async (evt) => { item.onClick(async (evt) => {
this.shareNote(await this.app.vault.read(file)); this.shareNote(await this.app.vault.read(file));
}); });