diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 8d9bb154a..c3d86790d 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -799,12 +799,14 @@ Zotero.Integration.SOAP_Compat = new function() { io.useBookmarks = session.prefs.fieldType; } - watcher.openWindow( - null, 'chrome://zotero/content/integrationDocPrefs.xul', '', - 'chrome,modal,centerscreen' - + (Zotero.Integration.usePopup ? ',popup' : ''), - io, true - ); + Components.classes["@mozilla.org/embedcomp/window-watcher;1"] + .getService(Components.interfaces.nsIWindowWatcher) + .openWindow( + null, 'chrome://zotero/content/integrationDocPrefs.xul', '', + 'chrome,modal,centerscreen' + + (Zotero.Integration.usePopup ? ',popup' : ''), + io, true + ); session.prefs.useEndnotes = io.useEndnotes; session.prefs.fieldType = io.useBookmarks; session.setStyle(io.style, session.prefs);