From f729172bddd0820362ecd3f7f96a6f1e89baf54c Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 13 Feb 2024 13:58:49 -0500 Subject: [PATCH] Fix error after setting custom file handler --- chrome/content/zotero/preferences/preferences_general.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences_general.js b/chrome/content/zotero/preferences/preferences_general.js index ec0a87b000..f3c221ea1e 100644 --- a/chrome/content/zotero/preferences/preferences_general.js +++ b/chrome/content/zotero/preferences/preferences_general.js @@ -202,11 +202,11 @@ Zotero_Preferences.General = { } customMenuItem.setAttribute('label', handlerFilename); if (icon) { - customMenuItem.className = 'menuitem-iconic'; + customMenuItem.classList.add('menuitem-iconic'); customMenuItem.setAttribute('image', icon); } else { - customMenuItem.className = ''; + customMenuItem.classList.remove('menuitem-iconic'); } customMenuItem.hidden = false; menulist.selectedIndex = 2;