Add Zotero.isSourceBuild

This should be used sparingly, since it risks missing problems in
released builds.
This commit is contained in:
Dan Stillman 2021-04-21 21:37:18 -04:00
parent 1eb888d026
commit 12045a7cf8

View file

@ -231,6 +231,7 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js");
Zotero.isDevBuild = Zotero.version.includes('beta') Zotero.isDevBuild = Zotero.version.includes('beta')
|| Zotero.version.includes('dev') || Zotero.version.includes('dev')
|| Zotero.version.includes('SOURCE'); || 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"]