Skip to content

Commit

Permalink
chore: onStartup call
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Nov 30, 2023
1 parent 03a41b4 commit 26cfad6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions addon/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 26cfad6

Please sign in to comment.