Skip to content

Commit

Permalink
fix: apply filter after waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah committed Sep 12, 2023
1 parent ce7aad7 commit 075d41a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/modules/ui/registerReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export async function registerReader() {
const doc = instance._iframeWindow?.document

addFilterToggleButton(instance)
addFilterToReader(instance)

attachTabStylesToReaderWindow(doc!)

Expand All @@ -29,6 +28,7 @@ export async function registerReader() {
attachTabStylesToReaderWindow(viewerDoc!)
}

addFilterToReader(instance)
addSplitMutationObserver(instance)

attachTabStylesToReaderWindow(getReaderDocument(instance, 'portal')!)
Expand All @@ -51,11 +51,6 @@ export async function registerReader() {
} catch (e) {
ztoolkit.log(e)
}
// ;[doc, secondViewDoc].forEach(async (doc, idx) => {
// if (idx === 1) {
// ztoolkit.log('registering styles for window', idx, doc)
// }
// })
})
}

Expand Down
2 changes: 1 addition & 1 deletion update.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"[email protected]": {
"updates": [
{
"version": "0.1.0-1",
"version": "0.1.0-2",
"update_link": "https://github.com/tefkah/zotero-night/releases/latest/download/night-7.xpi",
"applications": {
"zotero": {
Expand Down

0 comments on commit 075d41a

Please sign in to comment.