Skip to content

Commit

Permalink
Release 1.0.0-22
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Oct 29, 2023
1 parent a92c2bd commit 4be4207
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zotero-actions-tags",
"version": "1.0.0-21",
"version": "1.0.0-22",
"description": "Action it, tag it, sorted.",
"config": {
"addonName": "Actions and Tags for Zotero",
Expand Down
6 changes: 3 additions & 3 deletions src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function onStartup() {

await addon.api.actionManager.dispatchActionByEvent(
ActionEventTypes.programStartup,
{}
{},
);

initReaderShortcuts();
Expand All @@ -49,7 +49,7 @@ async function onMainWindowLoad(win: Window): Promise<void> {
ActionEventTypes.mainWindowLoad,
{
window: win,
}
},
);
}

Expand All @@ -59,7 +59,7 @@ async function onMainWindowUnload(win: Window): Promise<void> {
ActionEventTypes.mainWindowUnload,
{
window: win,
}
},
);
}

Expand Down
12 changes: 6 additions & 6 deletions src/modules/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function initMenu(win: Window) {
},
],
},
win.document.querySelector("popupset")!
win.document.querySelector("popupset")!,
);
}

Expand Down Expand Up @@ -88,23 +88,23 @@ function initReaderMenu() {
classList: ["button-background"],
},
],
})
}),
);
append(
ztoolkit.UI.createElement(doc, "style", {
id: `${config.addonRef}-reader-button`,
properties: {
textContent: readerButtonCSS,
},
})
}),
);
});
}

function buildItemMenu(win: Window, target: "item" | "reader") {
const doc = win.document;
const popup = doc.querySelector(
`#${config.addonRef}-${target}-popup`
`#${config.addonRef}-${target}-popup`,
) as XUL.MenuPopup;
// Remove all children in popup
while (popup.firstChild) {
Expand Down Expand Up @@ -143,7 +143,7 @@ function buildItemMenu(win: Window, target: "item" | "reader") {
};
}),
},
popup
popup,
);
}
}
Expand All @@ -165,7 +165,7 @@ function getActionsByMenu() {
}
return ((x[sortBy] as string) || "").localeCompare(
(y[sortBy] || "") as string,
Zotero.locale
Zotero.locale,
);
});
}
Expand Down
4 changes: 2 additions & 2 deletions update-beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"zoterotag@euclpts.com": {
"updates": [
{
"version": "1.0.0-21",
"update_link": "https://github.com/windingwind/zotero-actions-tags/releases/download/v1.0.0-21/zotero-actions-tags.xpi",
"version": "1.0.0-22",
"update_link": "https://github.com/windingwind/zotero-actions-tags/releases/download/v1.0.0-22/zotero-actions-tags.xpi",
"applications": {
"zotero": {
"strict_min_version": "6.999"
Expand Down

0 comments on commit 4be4207

Please sign in to comment.