From 2bef9b14fc5aaedf3ba5801d349f9abf9b880d2f Mon Sep 17 00:00:00 2001 From: MinjiK Date: Mon, 18 Dec 2023 14:58:42 +0100 Subject: [PATCH] another block --- overrides/main.html | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/overrides/main.html b/overrides/main.html index 3c2a0e29..fe368811 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -12,20 +12,6 @@ const redirectUrl = path.replace(redirectPattern, 'https://developers.amadeus.com/self-service/apis-docs/guides/$1'); document.write(``); } - - // 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; - } - } - }); - }); {% endblock %}