Skip to content

Commit

Permalink
test 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Blainegunn committed Oct 24, 2024
1 parent d72dcb1 commit 66aebfc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion acrobat/blocks/verb-widget/verb-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ 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 @@ -270,6 +269,17 @@ export default async function init(element) {
}
});

window.addEventListener('beforeunload', () => {
const date = new Date();
date.setTime(date.getTime() + 1 * 60 * 1000);
const cookieExp = `expires=${date.toUTCString()}`;
if (exitFlag) {
document.cookie = `UTS_Redirect=${Date.now()};domain=.adobe.com;path=/;expires=${cookieExp}`;
// adobe.com:acrobat:online:sign-pdf:transition
verbAnalytics('acom-redirect', VERB);
}
});

// Errors, Analytics & Logging
const lanaOptions = {
sampleRate: 1,
Expand Down

0 comments on commit 66aebfc

Please sign in to comment.