Skip to content

Commit

Permalink
update: allow installing in older versions of Zotero
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Nov 23, 2024
1 parent 6bf96ae commit e2cb7f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"zotero": {
"id": "__addonID__",
"update_url": "__updateURL__",
"strict_min_version": "7.0.10",
"strict_min_version": "6.9.9",
"strict_max_version": "7.0.*"
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/modules/infoBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { getPref } from "../utils/prefs";
export { registerItemPaneInfoRows };

function registerItemPaneInfoRows() {
if (getPref("showItemBoxTitleTranslation") !== false) {
if (
getPref("showItemBoxTitleTranslation") !== false &&
Zotero.ItemPaneManager.registerInfoRow
) {
Zotero.ItemPaneManager.registerInfoRow({
rowID: "titleTranslation",
pluginID: addon.data.config.addonID,
Expand Down

0 comments on commit e2cb7f9

Please sign in to comment.