mirror of
https://github.com/zotero/zotero.git
synced 2026-09-30 01:51:36 +00:00
Preferences: Fix sandbox creation for subpanes
This commit is contained in:
parent
a0dca12d51
commit
5ffcd88d97
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue