chore: onStartup call

This commit is contained in:
windingwind 2023-11-30 20:39:44 +08:00
parent 12e7cb9641
commit a56e31fa0d
2 changed files with 1 additions and 2 deletions

1
addon/bootstrap.js vendored
View File

@ -40,6 +40,7 @@ async function startup({ id, version, resourceURI, rootURI }, reason) {
`${rootURI}/chrome/content/scripts/__addonRef__.js`,
ctx,
);
Zotero.__addonInstance__.hooks.onStartup();
}
async function onMainWindowLoad({ window }, reason) {

View File

@ -16,8 +16,6 @@ if (!basicTool.getGlobal("Zotero")[config.addonInstance]) {
return _globalThis.addon.data.ztoolkit;
});
Zotero[config.addonInstance] = addon;
// Trigger addon hook for initialization
addon.hooks.onStartup();
}
function defineGlobal(name: Parameters<BasicTool["getGlobal"]>[0]): void;