Skip to content

Commit 55a35d6

Browse files
committed
fix: remove ftl on shutdown
1 parent 8bff3dd commit 55a35d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/hooks.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ async function onMainWindowUnload(win: Window): Promise<void> {
113113

114114
function onShutdown(): void {
115115
ztoolkit.unregisterAll();
116+
Zotero.getMainWindows().forEach((win) => {
117+
onMainWindowUnload(win);
118+
});
116119
// Remove addon object
117120
addon.data.alive = false;
118121
// @ts-ignore - Plugin instance is not typed

0 commit comments

Comments
 (0)