Skip to content

Commit

Permalink
Merge branch 'chore/bump-to-ghost-5' into chore/bump-to-ghost-5-shimmer
Browse files Browse the repository at this point in the history
  • Loading branch information
begonaalvarezd committed Sep 11, 2024
2 parents 9aba8b0 + 98586e8 commit c0f7b04
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ $(() => {

const openExternalLinksInDifferentTab = () => {
let links = $('a');
$.each(links, function (index, value) {
if (!value.href.includes(window.location.hostname)) {
if ($(value).parents('#cookieblock', '#cookieblock__banner__wrapper', '#cookieblock__banner').length > 0) {
value.target = '_self';
} else {
value.target = '_blank';
}
}
});
$.each(links, function (index, value) {
if (!value.href.includes(window.location.hostname)) {
if ($(value).parents('#cookieblock', '#cookieblock__banner__wrapper', '#cookieblock__banner').length > 0) {
value.target = '_self';
} else {
value.target = '_blank';
}
}
});
}

$openSearch.on('click', () => {
Expand Down

0 comments on commit c0f7b04

Please sign in to comment.