Fix innocuous error installing a style
Installing a style could throw an error if the preferences were open and the styles pane had not yet been selected, although the style would be successfully installed. See https://forums.zotero.org/discussion/29250/importing-a-new-style/
This commit is contained in:
parent
01fd28b99f
commit
2a33ede284
1 changed files with 3 additions and 1 deletions
|
@ -382,7 +382,9 @@ Zotero.Styles = new function() {
|
|||
var enumerator = wm.getEnumerator("zotero:pref");
|
||||
while(enumerator.hasMoreElements()) {
|
||||
var win = enumerator.getNext();
|
||||
win.Zotero_Preferences.Cite.refreshStylesList(styleID);
|
||||
if(win.Zotero_Preferences.Cite) {
|
||||
win.Zotero_Preferences.Cite.refreshStylesList(styleID);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue