Use Services.wm getter
This commit is contained in:
parent
ad0c8aad53
commit
fa7a330b0e
1 changed files with 1 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue