From 4b5c93d74ea28af9eff7e094d35f97f5f6646b7c Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Mon, 18 Nov 2024 09:56:38 +0100 Subject: [PATCH] fix: reader toolbar button update --- src/modules/reader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/reader.ts b/src/modules/reader.ts index 6afdace..b7adb85 100644 --- a/src/modules/reader.ts +++ b/src/modules/reader.ts @@ -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(); }