Skip to content

Commit

Permalink
change url
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbarbe committed Sep 28, 2023
1 parent a5cd91e commit 3800656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks/products/products.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,10 @@ export default function decorate(block) {

renderNanoBlocks(col, mv);

// listen to ProductCard change and update the first button accordingly
// listen to ProductCard change and update the buttons pointing to the store url
mv.subscribe((card) => {
col.querySelectorAll('.button-container a').forEach((link) => {
if (link && link.href === 'http://') {
if (link && link.href === 'https://www.bitdefender.com/site/Store/buy/') {
link.href = card.url;
}
});
Expand Down

0 comments on commit 3800656

Please sign in to comment.