Skip to content

Commit

Permalink
Merge pull request #220 from aleevas/DS-1428
Browse files Browse the repository at this point in the history
feat: [DS-1428] Disable 'openy_carnation/matchheight' library for page with LB
  • Loading branch information
podarok authored May 28, 2024
2 parents f01aa4d + 0754601 commit 3364ca1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions y_lb.module
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ function y_lb_page_attachments_alter(array &$page) {
}

$page['#attached']['library'][] = 'y_lb/main';

// Remove MatchHeight library for LB pages.
if (($key = array_search('openy_carnation/matchheight', $page['#attached']['library'])) !== FALSE) {
unset($page['#attached']['library'][$key]);
}
}
}

Expand Down

0 comments on commit 3364ca1

Please # to comment.