From 80c82fbb47098a0549fa7167456efdeac1f80fbf Mon Sep 17 00:00:00 2001 From: Adam Peller <46139+peller@users.noreply.github.com> Date: Thu, 22 Aug 2024 09:30:18 -0400 Subject: [PATCH] don't use ims guest token for any workflows from chrome extension --- acrobat/blocks/dc-converter-widget/dc-converter-widget.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/acrobat/blocks/dc-converter-widget/dc-converter-widget.js b/acrobat/blocks/dc-converter-widget/dc-converter-widget.js index 146f8b8d..94a3d569 100644 --- a/acrobat/blocks/dc-converter-widget/dc-converter-widget.js +++ b/acrobat/blocks/dc-converter-widget/dc-converter-widget.js @@ -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] || ''; @@ -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'; }