Preferences: Fix sandbox destructor

This commit is contained in:
Abe Jellinek 2025-07-20 10:23:16 -04:00 • committed by Dan Stillman
parent 519c4cb518
commit 52b4fc0b9d

View file

@ -95,9 +95,9 @@ var Zotero_Preferences = {
let event = new Event('unload');
child.dispatchEvent(event);
}
if (pane.sandbox) {
Cu.nukeSandbox(pane.sandbox);
pane.sandbox = null;
if (pane.scope) {
Cu.nukeSandbox(pane.scope);
pane.scope = null;
}
}
},