Fix error after setting custom file handler
This commit is contained in:
parent
872e7b2427
commit
f729172bdd
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue