Skip to content

Commit

Permalink
chore: logo link to Danaher corporate page
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaack committed Nov 20, 2023
1 parent df3e702 commit 9523c60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blocks/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ function buildSearchBlock(headerBlock) {
const logoPictureBlock = searchHtmlBlock.querySelector(':scope > p > picture');
const logoLinkBlock = searchHtmlBlock.querySelector(':scope > p > a');
logoPictureBlock.setAttribute('alt', logoLinkBlock.textContent);
if (window.location.pathname === '/') logoLinkBlock.href = 'https://danaher.com/';
const logoImg = logoPictureBlock.querySelector('img');
logoImg.className = 'brand-logo max-w-full w-14 md:w-20 lg:w-44 h-full object-contain';
logoLinkBlock.className = 'ml-2 mb-2';
Expand Down

0 comments on commit 9523c60

Please sign in to comment.