Preferences: Fix sandbox creation for subpanes

This commit is contained in:
Abe Jellinek 2025-07-08 16:07:13 -04:00
parent a0dca12d51
commit 5ffcd88d97

View file

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