mirror of
https://github.com/zotero/zotero.git
synced 2026-10-07 02:58:09 +00:00
fx-compat: Preferences: Fix pane script global object
Panes were being loaded with Zotero_Preferences as their global scope, so global variables they defined would be set on that object instead of the window.
This commit is contained in:
parent
b6edaea54c
commit
7e0b898765
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ var Zotero_Preferences = {
|
|||
if (!pane.imported) {
|
||||
if (pane.scripts) {
|
||||
for (let script of pane.scripts) {
|
||||
Services.scriptloader.loadSubScript(script, this);
|
||||
Services.scriptloader.loadSubScript(script, window);
|
||||
}
|
||||
}
|
||||
if (pane.stylesheets) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue