chore: onStartup call
This commit is contained in:
parent
12e7cb9641
commit
a56e31fa0d
1
addon/bootstrap.js
vendored
1
addon/bootstrap.js
vendored
@ -40,6 +40,7 @@ async function startup({ id, version, resourceURI, rootURI }, reason) {
|
|||||||
`${rootURI}/chrome/content/scripts/__addonRef__.js`,
|
`${rootURI}/chrome/content/scripts/__addonRef__.js`,
|
||||||
ctx,
|
ctx,
|
||||||
);
|
);
|
||||||
|
Zotero.__addonInstance__.hooks.onStartup();
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onMainWindowLoad({ window }, reason) {
|
async function onMainWindowLoad({ window }, reason) {
|
||||||
|
@ -16,8 +16,6 @@ if (!basicTool.getGlobal("Zotero")[config.addonInstance]) {
|
|||||||
return _globalThis.addon.data.ztoolkit;
|
return _globalThis.addon.data.ztoolkit;
|
||||||
});
|
});
|
||||||
Zotero[config.addonInstance] = addon;
|
Zotero[config.addonInstance] = addon;
|
||||||
// Trigger addon hook for initialization
|
|
||||||
addon.hooks.onStartup();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function defineGlobal(name: Parameters<BasicTool["getGlobal"]>[0]): void;
|
function defineGlobal(name: Parameters<BasicTool["getGlobal"]>[0]): void;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user