Fix version detection on non-Firefox browsers (e.g. Flock)

This commit is contained in:
Dan Stillman 2008-05-19 08:10:00 +00:00
parent 97468931d5
commit 72e5c6c4d4

View File

@ -123,9 +123,8 @@ var Zotero = new function(){
var appInfo =
Components.classes["@mozilla.org/xre/app-info;1"].
getService(Components.interfaces.nsIXULAppInfo)
// TODO: fix for Flock, etc.
this.isFx2 = appInfo.version.indexOf('2.0') === 0;
this.isFx3 = appInfo.version.indexOf('3.0') === 0;
this.isFx2 = appInfo.platformVersion.indexOf('1.8') === 0;
this.isFx3 = appInfo.platformVersion.indexOf('1.9') === 0;
// OS platform
var win = Components.classes["@mozilla.org/appshell/appShellService;1"]