Preferences: Fix sandbox creation for subpanes

This commit is contained in:
Abe Jellinek 2025-07-08 16:07:13 -04:00 • committed by Dan Stillman
parent e2bcf90856
commit 303b3a9a89

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);