Fix version detection on non-Firefox browsers (e.g. Flock)
This commit is contained in:
parent
97468931d5
commit
72e5c6c4d4
|
@ -123,9 +123,8 @@ var Zotero = new function(){
|
||||||
var appInfo =
|
var appInfo =
|
||||||
Components.classes["@mozilla.org/xre/app-info;1"].
|
Components.classes["@mozilla.org/xre/app-info;1"].
|
||||||
getService(Components.interfaces.nsIXULAppInfo)
|
getService(Components.interfaces.nsIXULAppInfo)
|
||||||
// TODO: fix for Flock, etc.
|
this.isFx2 = appInfo.platformVersion.indexOf('1.8') === 0;
|
||||||
this.isFx2 = appInfo.version.indexOf('2.0') === 0;
|
this.isFx3 = appInfo.platformVersion.indexOf('1.9') === 0;
|
||||||
this.isFx3 = appInfo.version.indexOf('3.0') === 0;
|
|
||||||
|
|
||||||
// OS platform
|
// OS platform
|
||||||
var win = Components.classes["@mozilla.org/appshell/appShellService;1"]
|
var win = Components.classes["@mozilla.org/appshell/appShellService;1"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user