mirror of
https://github.com/zotero/zotero.git
synced 2026-09-29 01:41:24 +00:00
Preferences: Fix sandbox creation for subpanes
This commit is contained in:
parent
e2bcf90856
commit
303b3a9a89
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