Skip to content

Commit

Permalink
Merge pull request #834 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 61d6576 + 6667bc9 commit d05b308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acrobat/blocks/verb-widget/verb-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default async function init(element) {
errorState.classList.add('hide');
});

window.addEventListener('unity:track-analytics', (e) => {
element.addEventListener('unity:track-analytics', (e) => {
if (e.detail?.event === 'change') {
verbAnalytics('choose-file:open', VERB, e.detail?.data);
setUser();
Expand Down Expand Up @@ -225,7 +225,7 @@ export default async function init(element) {
}, 5000);
};

window.addEventListener('unity:show-error-toast', (e) => {
element.addEventListener('unity:show-error-toast', (e) => {
// eslint-disable-next-line no-console
console.log(`⛔️ Error Code - ${e.detail?.code}`);

Expand Down

0 comments on commit d05b308

Please sign in to comment.