Skip to content

Commit

Permalink
chore: get plugin name via internal method
Browse files Browse the repository at this point in the history
  • Loading branch information
bandantonio committed Jan 26, 2024
1 parent bb494b7 commit 2f9ae31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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) => {
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 2f9ae31

Please sign in to comment.