diff --git a/resources/skins.vector.js/dropdownMenus.js b/resources/skins.vector.js/dropdownMenus.js index d031a9120..37ffcfcb2 100644 --- a/resources/skins.vector.js/dropdownMenus.js +++ b/resources/skins.vector.js/dropdownMenus.js @@ -102,7 +102,8 @@ function addPortletLinkHandler( item, data ) { } } - if ( link && iconElement ) { + // Check link.prepend exists for older browser since this is ES5 code + if ( link && iconElement && link.prepend ) { link.prepend( iconElement ); }