Merge "link.prepend is not a function in older browsers"

This commit is contained in:
jenkins-bot 2022-10-09 09:33:52 +00:00 committed by Gerrit Code Review
commit 74bdd375bb

View file

@ -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 );
}