Skip to content

Commit

Permalink
Merge pull request #835 from adobecom/MWPW-158477_
Browse files Browse the repository at this point in the history
MWPW-158477
  • Loading branch information
Blainegunn authored Sep 30, 2024
2 parents d05b308 + 4b76c4b commit c68a956
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
9 changes: 0 additions & 9 deletions acrobat/blocks/verb-widget/verb-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
9 changes: 4 additions & 5 deletions acrobat/scripts/alloy/verb-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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: {
Expand Down

0 comments on commit c68a956

Please sign in to comment.