From 559b3002c2c55c2fa5783eb8bc151a9b1c8c27b1 Mon Sep 17 00:00:00 2001 From: Blaine Gunn Date: Thu, 12 Oct 2023 14:08:00 -0600 Subject: [PATCH] MWPW-137700 --- acrobat/blocks/dc-converter-widget/dc-converter-widget.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/acrobat/blocks/dc-converter-widget/dc-converter-widget.js b/acrobat/blocks/dc-converter-widget/dc-converter-widget.js index 1792c3f2..cefa06f2 100644 --- a/acrobat/blocks/dc-converter-widget/dc-converter-widget.js +++ b/acrobat/blocks/dc-converter-widget/dc-converter-widget.js @@ -184,7 +184,6 @@ export default async function init(element) { // Redir URL const REDIRECT_URL_DIV = widget.querySelectorAll('div')[2]; if (REDIRECT_URL_DIV) { - // REDIRECT_URL_DIV.id = 'REDIRECT_URL'; REDIRECT_URL = REDIRECT_URL_DIV.textContent.trim(); REDIRECT_URL_DIV.remove(); } @@ -210,8 +209,7 @@ export default async function init(element) { // Redirect const fallBack = 'https://www.adobe.com/go/acrobat-overview'; const redDir = () => { - if (window.location.hostname !== 'main--dc--adobecom.hlx.live' - && window.location.hostname !== 'www.adobe.com') { + if (window.location.hostname !== 'www.adobe.com') { window.location = `https://www.adobe.com/go/acrobat-${verbRedirMap[VERB] || VERB.split('-').join('')}-${ENV}` || REDIRECT_URL; } else { window.location = REDIRECT_URL || `https://www.adobe.com/go/acrobat-${verbRedirMap[VERB] || VERB.split('-').join('')}` || fallBack;