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:
Abe Jellinek 2023-01-17 10:28:57 -05:00
parent b6edaea54c
commit 7e0b898765

View file

@ -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) {