Use Services.wm getter

This commit is contained in:
Sylvester Keil 2018-08-03 13:29:08 +02:00
parent ad0c8aad53
commit fa7a330b0e
No known key found for this signature in database
GPG key ID: 878933BCEAB25A10

View file

@ -488,9 +488,7 @@ Zotero.Styles = new function() {
yield Zotero.Styles.reinit();
// Refresh preferences windows
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].
getService(Components.interfaces.nsIWindowMediator);
var enumerator = wm.getEnumerator("zotero:pref");
var enumerator = Services.wm.getEnumerator("zotero:pref");
while(enumerator.hasMoreElements()) {
var win = enumerator.getNext();
if(win.Zotero_Preferences.Cite) {