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
1 changed files with 2 additions and 1 deletions

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