Skip to content

Commit

Permalink
Merge pull request #416 from adobecom/MWPW-137700
Browse files Browse the repository at this point in the history
  • Loading branch information
Blainegunn authored Oct 12, 2023
2 parents 4e51595 + 559b300 commit e0fd78c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions acrobat/blocks/dc-converter-widget/dc-converter-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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;
Expand Down

0 comments on commit e0fd78c

Please sign in to comment.