Skip to content

Commit

Permalink
Merge pull request #212 from amadeus4dev/1218
Browse files Browse the repository at this point in the history
another block
  • Loading branch information
minjikarin authored Dec 18, 2023
2 parents 5f5301a + 2bef9b1 commit 0ebde76
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@
const redirectUrl = path.replace(redirectPattern, 'https://developers.amadeus.com/self-service/apis-docs/guides/$1');
document.write(`<meta http-equiv="refresh" content="0;url=${redirectUrl}" />`);
}

// Event listener for link clicks
window.addEventListener('DOMContentLoaded', (event) => {
document.body.addEventListener('click', function (event) {
var target = event.target;
if (target.tagName === 'A') {
var href = target.getAttribute('href');
if (href.startsWith('https://developers.amadeus.com')) {
event.preventDefault();
window.location.href = href;
}
}
});
});
</script>
{% endblock %}

Expand Down

0 comments on commit 0ebde76

Please sign in to comment.