diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index 34aefc5189..889b214b50 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -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);