From 2f9ae313d1e94de74e1bf26996d4a8a4f8e6bf92 Mon Sep 17 00:00:00 2001 From: Antonio Date: Fri, 26 Jan 2024 20:57:09 +0200 Subject: [PATCH] chore: get plugin name via internal method --- main.ts | 3 +-- versions.json | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.ts b/main.ts index 49fdce0..b822d22 100644 --- a/main.ts +++ b/main.ts @@ -3,7 +3,6 @@ import * as Handlebars from 'handlebars'; import { normalizePath, Notice, Plugin } from 'obsidian'; import * as path from 'path'; import { promisify } from 'util'; -import { name as pluginName } from './manifest.json'; import { DEFAULT_SETTINGS, IBookHighlightsSettingTab } from './src/settings'; import { CombinedHighlight, @@ -17,7 +16,7 @@ export default class IBookHighlightsPlugin extends Plugin { async onload() { await this.loadSettings(); - this.addRibbonIcon('book-open', pluginName, async () => { + this.addRibbonIcon('book-open', this.manifest.name, async () => { await this.importHighlights().then(() => { new Notice('Apple Books highlights imported successfully'); }).catch((error) => { diff --git a/versions.json b/versions.json index 189c17e..f66b649 100644 --- a/versions.json +++ b/versions.json @@ -1,4 +1,5 @@ { "1.0.0": "0.15.0", - "1.0.1": "0.15.0" + "1.0.1": "0.15.0", + "1.0.2": "0.15.0" }