Addresses #1057, Won't start on Windows
I suspect this will fix the problem. It will also provide better error reporting for Zotero startup errors such as this one.
This commit is contained in:
parent
6758b7d5c7
commit
4067bb2111
|
@ -47,6 +47,9 @@ Zotero.Zeroconf = new function () {
|
||||||
if (!Zotero.isMac) {
|
if (!Zotero.isMac) {
|
||||||
this.clientEnabled = false;
|
this.clientEnabled = false;
|
||||||
this.serverEnabled = false;
|
this.serverEnabled = false;
|
||||||
|
|
||||||
|
// TODO: Why is Windows breaking without this?
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure we have the client executable
|
// Make sure we have the client executable
|
||||||
|
|
|
@ -46,7 +46,15 @@ Cc["@mozilla.org/moz/jssubscript-loader;1"]
|
||||||
// Calls to other XPCOM components must be in here rather than in top-level
|
// Calls to other XPCOM components must be in here rather than in top-level
|
||||||
// code, as other components may not have yet been initialized.
|
// code, as other components may not have yet been initialized.
|
||||||
function setupService(){
|
function setupService(){
|
||||||
Zotero.init();
|
try {
|
||||||
|
Zotero.init();
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
var msg = typeof e == 'string' ? e : e.name;
|
||||||
|
dump(e + "\n\n");
|
||||||
|
Components.utils.reportError(e);
|
||||||
|
throw (e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function ZoteroService(){
|
function ZoteroService(){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user