diff --git a/package.json b/package.json index 8d9926e..ed70d4f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "obsidian-sample-plugin", + "name": "obsidian-book-tracker", "version": "1.0.0", "description": "Simplifies tracking your reading progress and managing your book collection in Obsidian.", "main": "main.js", diff --git a/src/ui/components/BookshelfView.svelte b/src/ui/components/BookshelfView.svelte index 0acb3d0..0ac4965 100644 --- a/src/ui/components/BookshelfView.svelte +++ b/src/ui/components/BookshelfView.svelte @@ -142,7 +142,7 @@ orientation="flat" onClick={() => plugin.app.workspace - .getLeaf("tab") + .getLeaf(false) .openFile(bookData.file)} /> {/each} @@ -157,7 +157,7 @@ design={book.design} orientation={book.orientation} onClick={() => - plugin.app.workspace.getLeaf("tab").openFile(book.file)} + plugin.app.workspace.getLeaf(false).openFile(book.file)} /> {/if} {/each}