Skip to content

Commit

Permalink
fix: reader toolbar button update
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Nov 18, 2024
1 parent ee60162 commit 4b5c93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async function refreshReader(reader: _ZoteroTypes.ReaderInstance) {
`.${addon.data.config.addonRef}-reader-button`,
) as HTMLButtonElement;
if (button) {
updateReaderToolbarButton(button, win.__BIONIC_READER_ENABLED);
updateReaderToolbarButton(button, reader, win.__BIONIC_READER_ENABLED);
}
await win.PDFViewerApplication?.pdfViewer?.refresh();
}
Expand Down

0 comments on commit 4b5c93d

Please sign in to comment.