diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index c077319285..28c4ec58b9 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -36,9 +36,13 @@ const ZOTERO_CONFIG = { PREF_BRANCH: 'extensions.zotero.' }; -// Fx4.0b8+ use implicit SJOWs; no creation necessary -if(!XPCSafeJSObjectWrapper) { - var XPCSafeJSObjectWrapper = function(arg) { return arg }; +// Fx4.0b8+ use implicit SJOWs and get rid of explicit XPCSafeJSObjectWrapper constructor +// Ugly hack to get around this until we can just kill the XPCSafeJSObjectWrapper calls (when we +// drop Fx3.6 support) +try { + XPCSafeJSObjectWrapper; +} catch(e) { + eval("var XPCSafeJSObjectWrapper = function(arg) { return arg }"); } /* @@ -215,6 +219,8 @@ var Zotero = new function(){ } } + this.isConnector = false; + // OS platform var win = Components.classes["@mozilla.org/appshell/appShellService;1"] .getService(Components.interfaces.nsIAppShellService)