From c4e8ee6005774f8e7b4eb607e51f8a362b0a1250 Mon Sep 17 00:00:00 2001 From: Blaine Gunn Date: Tue, 22 Oct 2024 17:39:11 -0600 Subject: [PATCH] Revert "MWPW-160726" --- acrobat/blocks/verb-widget/verb-widget.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/acrobat/blocks/verb-widget/verb-widget.js b/acrobat/blocks/verb-widget/verb-widget.js index f4c8b4d1..20e395d5 100644 --- a/acrobat/blocks/verb-widget/verb-widget.js +++ b/acrobat/blocks/verb-widget/verb-widget.js @@ -80,6 +80,7 @@ export default async function init(element) { return; } + const ENV = getEnv(); const { locale } = getConfig(); const ppURL = window.mph['verb-widget-privacy-policy-url'] || `https://www.adobe.com${locale.prefix}/privacy/policy.html`; const touURL = window.mph['verb-widget-terms-of-use-url'] || `https://www.adobe.com${locale.prefix}/legal/terms.html`; @@ -249,12 +250,6 @@ export default async function init(element) { verbAnalytics('job:uploading', VERB, e.detail?.data); setUser(); document.cookie = `UTS_Uploading=${Date.now()};domain=.adobe.com;path=/;expires=${cookieExp}`; - - window.addEventListener('beforeunload', (w) => { - w.preventDefault(); - // Included for legacy support, e.g. Chrome/Edge < 119 - w.returnValue = true; - }); } if (e.detail?.event === 'uploaded') {