sforkowany z mirror/soapbox
Update app/soapbox/features/soapbox_config/components/icon_picker_dropdown.js
rodzic
e6ca4ba299
commit
ea0d6484a6
|
@ -68,7 +68,7 @@ class IconPickerMenu extends React.PureComponent {
|
|||
if (!c) return;
|
||||
|
||||
// Nice and dirty hack to display the icons
|
||||
c.querySelectorAll('button.emoji-mart-emoji > span').forEach(elem => {
|
||||
c.querySelectorAll('button.emoji-mart-emoji > img').forEach(elem => {
|
||||
const newIcon = document.createElement('span');
|
||||
newIcon.innerHTML = `<i class="fa fa-${elem.parentNode.getAttribute('title')} fa-hack"></i>`;
|
||||
elem.parentNode.replaceChild(newIcon, elem);
|
||||
|
|
Ładowanie…
Reference in New Issue