From 4b76c4b89ac297f66dbb1263fc580a04479c6a41 Mon Sep 17 00:00:00 2001 From: Blaine Gunn Date: Mon, 30 Sep 2024 14:25:15 -0600 Subject: [PATCH] MWPW-158477 --- acrobat/blocks/verb-widget/verb-widget.js | 9 --------- acrobat/scripts/alloy/verb-widget.js | 9 ++++----- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/acrobat/blocks/verb-widget/verb-widget.js b/acrobat/blocks/verb-widget/verb-widget.js index 5a951c1e..572b39fb 100644 --- a/acrobat/blocks/verb-widget/verb-widget.js +++ b/acrobat/blocks/verb-widget/verb-widget.js @@ -228,7 +228,6 @@ export default async function init(element) { element.addEventListener('unity:show-error-toast', (e) => { // eslint-disable-next-line no-console console.log(`⛔️ Error Code - ${e.detail?.code}`); - if (e.detail?.code.includes('error_only_accept_one_file')) { handleError(e.detail?.message); verbAnalytics('error', VERB); @@ -267,11 +266,3 @@ export default async function init(element) { // LANA for 403 }); } - -// const ce = ( -// new CustomEvent( -// 'unity:show-error-toast', -// { detail: { code: 'only_accept_one_file', message: 'Error message' } }, -// ) -// ); -// dispatchEvent(ce) diff --git a/acrobat/scripts/alloy/verb-widget.js b/acrobat/scripts/alloy/verb-widget.js index f3b5cff5..53fda692 100644 --- a/acrobat/scripts/alloy/verb-widget.js +++ b/acrobat/scripts/alloy/verb-widget.js @@ -41,10 +41,9 @@ export default function init(eventName, verb, metaData) { dcweb: { event: { pagename: `acrobat:verb-${verb}:${eventName}` }, content: { - type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', - size: '2-5MB', - count: 1, - extension: 'docx', + type: metaData?.type, + size: metaData?.size, + count: metaData?.count, }, source: { user_agent: navigator.userAgent, @@ -68,7 +67,7 @@ export default function init(eventName, verb, metaData) { content: { type: metaData?.type, size: metaData?.size, - count: 1, + count: metaData?.count, // extension: 'docx', may not be needed }, source: {