fix error

This commit is contained in:
shenyutao 2024-04-17 18:32:59 +08:00
parent 18fac41190
commit 2d10915c7d
3 changed files with 4 additions and 5 deletions

View File

@ -32,7 +32,7 @@
},
"homepage": "https://github.com/syt2/zotero-tldr#readme",
"dependencies": {
"zotero-plugin-toolkit": "^2.3.15"
"zotero-plugin-toolkit": "^2.3.29"
},
"devDependencies": {
"@types/node": "^20.10.4",
@ -131,4 +131,4 @@
"after:bump": "npm run build"
}
}
}
}

View File

@ -165,7 +165,6 @@ function onUpdateItems(items: Zotero.Item[], forceFetch: boolean = false) {
? succeedItems.push(item)
: failedItems.push(item);
await Zotero.Promise.delay(50);
ztoolkit.ItemBox.refresh();
popupWin.changeLine({
progress: (index * 100) / count,
text: `${getString("popWindow-waiting")}: ${

View File

@ -41,7 +41,7 @@ export class RegisterFactory {
export class UIFactory {
// item右键菜单
static registerRightClickMenuItem() {
const menuIcon = `chrome://${config.addonRef}/content/icons/favicon@0.5x.png`;
const menuIcon = `chrome://${config.addonRef}/content/icons/favicon.png`;
// item menuitem with icon
ztoolkit.Menu.register("item", {
tag: "menuitem",
@ -57,7 +57,7 @@ export class UIFactory {
// collection右键菜单
static registerRightClickCollectionMenuItem() {
const menuIcon = `chrome://${config.addonRef}/content/icons/favicon@0.5x.png`;
const menuIcon = `chrome://${config.addonRef}/content/icons/favicon.png`;
ztoolkit.Menu.register("collection", {
tag: "menuitem",
id: "zotero-collectionmenu-tldr",