From e0ccce40720ac87e15cc1d46fe43948be7f127f9 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 22 Sep 2022 03:40:50 -0400 Subject: [PATCH] fx-compat: Fix 'dev' channel warning not appearing --- chrome/content/zotero/zoteroPane.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 6033207346..4689ef18bb 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -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); }