Skip to content

Commit

Permalink
Merge pull request #774 from adobecom/redirect-token
Browse files Browse the repository at this point in the history
DCXY-25858 don't use ims guest token for any workflows from chrome extension
  • Loading branch information
Blainegunn authored Aug 22, 2024
2 parents 068a2a7 + 80c82fb commit 506d9f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions acrobat/blocks/dc-converter-widget/dc-converter-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export default async function init(element) {
widgetContainer.className = `fsw wapper-${VERB}`;
widget.appendChild(widgetContainer);

const isRedirection = /redirect_(?:conversion|files|upsell)=true/.test(window.location.search);
const isRedirection = /redirect_(?:conversion|files)=true/.test(window.location.search);
const { cookie } = document;
const limitCookie = exhLimitCookieMap[VERB] || exhLimitCookieMap[VERB.match(/^pdf-to|to-pdf$/)?.[0]];
const cookiePrefix = appEnvCookieMap[ENV] || '';
Expand Down Expand Up @@ -284,7 +284,8 @@ export default async function init(element) {
if (preRenderDropZone) {
dcScript.dataset.pre_rendered = 'true'; // TODO: remove this line
}
if (IMS_GUEST && !isRedirection) {
const isFromChromeExtension = /x_api_client_id=chrome_extension/.test(window.location.search);
if (IMS_GUEST && !isRedirection && !isFromChromeExtension) {
dcScript.dataset.ims_guests = 'true';
}

Expand Down

0 comments on commit 506d9f9

Please sign in to comment.