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;