chore: call onStartup
This commit is contained in:
parent
c99adb8477
commit
db642b859d
|
|
@ -37,6 +37,7 @@ async function startup({ id, version, resourceURI, rootURI }, reason) {
|
|||
`${rootURI}/chrome/content/scripts/__addonRef__.js`,
|
||||
ctx,
|
||||
);
|
||||
Zotero.__addonInstance__.hooks.onStartup();
|
||||
}
|
||||
|
||||
function onMainWindowLoad({ win }) {
|
||||
|
|
|
|||
|
|
@ -19,8 +19,6 @@ if (!basicTool.getGlobal("Zotero")[config.addonInstance]) {
|
|||
},
|
||||
});
|
||||
Zotero[config.addonInstance] = addon;
|
||||
// Trigger addon hook for initialization
|
||||
addon.hooks.onStartup();
|
||||
}
|
||||
|
||||
function defineGlobal(name: Parameters<BasicTool["getGlobal"]>[0]) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue