Skip to content

Commit

Permalink
replace equal with includes
Browse files Browse the repository at this point in the history
  • Loading branch information
tsolakoua committed Dec 18, 2023
1 parent 05aea04 commit c9bfc55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
if (target.tagName === 'A') {
console.log('we are in the first if');
var href = target.getAttribute('href');
if (href.startsWith('https://developers.amadeus.com')) {
if (href.includes('developers.amadeus.com')) {
console.log('we are in the second if');
event.preventDefault();
console.log('href:', href);
window.location.href = href;
}
}
Expand Down

0 comments on commit c9bfc55

Please sign in to comment.