fx-compat: Fix 'dev' channel warning not appearing

This commit is contained in:
Dan Stillman 2022-09-22 03:40:50 -04:00
parent afac621611
commit e0ccce4072

View file

@ -155,12 +155,12 @@ var ZoteroPane = new function()
// Uncomment to test
//isDevBuild = isDevBuild || Zotero.version.includes('.SOURCE');
if (isDevBuild) {
let label = document.createElement('label');
label.setAttribute('value', 'TEST BUILD — DO NOT USE');
label.setAttribute('style', 'font-weight: bold; color: red; cursor: pointer');
let label = document.createElement('span');
label.setAttribute('style', 'font-weight: bold; color: red; cursor: pointer; margin-right: .5em');
label.onclick = function () {
Zotero.launchURL('https://www.zotero.org/support/kb/test_builds');
};
label.textContent = 'TEST BUILD — DO NOT USE';
let syncStop = document.getElementById('zotero-tb-sync-stop');
syncStop.parentNode.insertBefore(label, syncStop);
}