commit f95291af8807ef14414de50d3cd96f0deba5cb24
parent 01748aab011acddfca76d66b9d0f34e7bc0e1b07
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 1 Dec 2008 20:51:16 +0000
Fix broken doc prefs window
Diffstat:
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git 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);