fix startup error on Fx 3.6

This commit is contained in:
Simon Kornblith 2010-10-27 02:45:04 +00:00
parent e0e84bc22a
commit 214d857861

View File

@ -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)