Skip to content

Commit

Permalink
Merge pull request #465 from WWWPiramalFinanceCOM/feature/comp-creati…
Browse files Browse the repository at this point in the history
…on-new

Feature/comp creation new
  • Loading branch information
nky11 authored Sep 18, 2024
2 parents 0dad0c0 + 9d97c09 commit e088c4b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions blocks/imgwithlink/imgwithlink.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ export default function decorate(block) {
if (newDiv) {
block.innerHTML = "";
block.appendChild(newDiv);
if (document.querySelectorAll('.download-piramal-wrapper')) {
var desktopLinks = document.querySelectorAll('.download-piramal-wrapper .image-href-desktop a');
var mobileLinks = document.querySelectorAll('.download-piramal-wrapper .image-href-mobile a');
var anchor_class = desktopLinks.length > 0 ? desktopLinks : mobileLinks;
anchor_class[0].removeAttribute('href');
// document.querySelectorAll('.download-piramal-wrapper .image-href-desktop a')[0].removeAttribute('href');
}
aTagPreventDefault();
}
}
Expand Down

0 comments on commit e088c4b

Please sign in to comment.