Fix nukeSandbox error when closing settings

Fixes #5509
This commit is contained in:
Abe Jellinek 2025-08-21 11:35:41 -04:00
parent 098be27375
commit ba4949e822

View file

@ -283,6 +283,7 @@ var Zotero_Preferences = {
pane.scope = new Cu.Sandbox(window, {
sandboxPrototype: window,
sandboxName: pane.rawLabel || pane.id,
sameZoneAs: window,
});
for (let script of pane.scripts) {
Services.scriptloader.loadSubScript(script, pane.scope);