Add Zotero.isBetaBuild
and fix Zotero.isDevBuild
Previously `isDevBuild` was true for beta, dev, or source builds (but also wasn't used anywhere)
This commit is contained in:
parent
e96426d18c
commit
08ffa64abf
2 changed files with 5 additions and 6 deletions
|
@ -229,11 +229,10 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js");
|
||||||
this.isClient = true;
|
this.isClient = true;
|
||||||
this.isStandalone = true;
|
this.isStandalone = true;
|
||||||
|
|
||||||
Zotero.version = Services.appinfo.version;
|
this.version = Services.appinfo.version;
|
||||||
Zotero.isDevBuild = Zotero.version.includes('beta')
|
this.isBetaBuild = Zotero.version.includes('-beta');
|
||||||
|| Zotero.version.includes('dev')
|
this.isDevBuild = Zotero.version.includes('-dev');
|
||||||
|| Zotero.version.includes('SOURCE');
|
this.isSourceBuild = Zotero.version.includes('SOURCE');
|
||||||
Zotero.isSourceBuild = Zotero.version.includes('SOURCE');
|
|
||||||
|
|
||||||
// OS platform
|
// OS platform
|
||||||
var win = Components.classes["@mozilla.org/appshell/appShellService;1"]
|
var win = Components.classes["@mozilla.org/appshell/appShellService;1"]
|
||||||
|
|
|
@ -511,7 +511,7 @@ var ZoteroPane = new function()
|
||||||
// Show warning in toolbar for 'dev' channel builds and troubleshooting mode
|
// Show warning in toolbar for 'dev' channel builds and troubleshooting mode
|
||||||
try {
|
try {
|
||||||
let afterElement = 'zotero-tb-tabs-menu';
|
let afterElement = 'zotero-tb-tabs-menu';
|
||||||
let isDevBuild = Zotero.version.includes('-dev');
|
let isDevBuild = Zotero.isDevBuild;
|
||||||
let isSafeMode = Services.appinfo.inSafeMode;
|
let isSafeMode = Services.appinfo.inSafeMode;
|
||||||
// Uncomment to test
|
// Uncomment to test
|
||||||
//isDevBuild = true;
|
//isDevBuild = true;
|
||||||
|
|
Loading…
Reference in a new issue