Skip to content

Commit

Permalink
Revert "MWPW-160726"
Browse files Browse the repository at this point in the history
  • Loading branch information
Blainegunn authored Oct 22, 2024
1 parent cf83488 commit c4e8ee6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions acrobat/blocks/verb-widget/verb-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down Expand Up @@ -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') {
Expand Down

0 comments on commit c4e8ee6

Please sign in to comment.