Remove corruption check, since it's no longer necessary and likely to be wrong
This commit is contained in:
parent
ef7a3f0121
commit
78dd74f391
|
@ -41,18 +41,6 @@ const ZoteroStandalone = new function() {
|
||||||
ZoteroPane.init();
|
ZoteroPane.init();
|
||||||
ZoteroPane.makeVisible();
|
ZoteroPane.makeVisible();
|
||||||
|
|
||||||
// Run check for corrupt installation, where the wrong Gecko runtime is being used
|
|
||||||
if(Zotero.isMac && Zotero.isStandalone) {
|
|
||||||
var greDir = Components.classes["@mozilla.org/file/directory_service;1"]
|
|
||||||
.getService(Components.interfaces.nsIProperties)
|
|
||||||
.get("GreD", Components.interfaces.nsIFile);
|
|
||||||
if(greDir.isSymlink() || greDir.leafName !== "Current") {
|
|
||||||
var ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
|
|
||||||
.getService(Components.interfaces.nsIPromptService);
|
|
||||||
ps.alert(null, "", Zotero.getString('standalone.corruptInstallation'));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Don't ask before handing http and https URIs
|
// Don't ask before handing http and https URIs
|
||||||
var eps = Components.classes['@mozilla.org/uriloader/external-protocol-service;1']
|
var eps = Components.classes['@mozilla.org/uriloader/external-protocol-service;1']
|
||||||
.getService(Components.interfaces.nsIExternalProtocolService);
|
.getService(Components.interfaces.nsIExternalProtocolService);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user