update: ztoolkit lib
This commit is contained in:
parent
b69feab780
commit
ba57111764
@ -41,7 +41,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/windingwind/zotero-addon-template#readme",
|
"homepage": "https://github.com/windingwind/zotero-addon-template#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"zotero-plugin-toolkit": "^2.1.5"
|
"zotero-plugin-toolkit": "^2.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.4.2",
|
"@types/node": "^20.4.2",
|
||||||
|
@ -22,6 +22,7 @@ function initZToolkit(_ztoolkit: ReturnType<typeof createZToolkit>) {
|
|||||||
_ztoolkit.UI.basicOptions.ui.enableElementDOMLog = __env__ === "development";
|
_ztoolkit.UI.basicOptions.ui.enableElementDOMLog = __env__ === "development";
|
||||||
_ztoolkit.basicOptions.debug.disableDebugBridgePassword =
|
_ztoolkit.basicOptions.debug.disableDebugBridgePassword =
|
||||||
__env__ === "development";
|
__env__ === "development";
|
||||||
|
_ztoolkit.basicOptions.api.pluginID = config.addonID;
|
||||||
_ztoolkit.ProgressWindow.setIconURI(
|
_ztoolkit.ProgressWindow.setIconURI(
|
||||||
"default",
|
"default",
|
||||||
`chrome://${config.addonRef}/content/icons/favicon.png`,
|
`chrome://${config.addonRef}/content/icons/favicon.png`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user