Skip to content

Commit

Permalink
remove event listener when i get all providers
Browse files Browse the repository at this point in the history
  • Loading branch information
Octavia Suceava authored and Octavia Suceava committed Oct 7, 2024
1 parent 52da7f2 commit a87d189
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/connatixBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,11 @@ export const spec = {
return;
}

this.removeEventListener('message', handler);

event.stopImmediatePropagation();
if(event.response.type === 'cnx_all_identity_providers_resolved')
{
this.removeEventListener('message', handler);
event.stopImmediatePropagation();
}

const response = event.data;
if (response.data) {
Expand Down

0 comments on commit a87d189

Please sign in to comment.