Skip to content

Commit

Permalink
fix: allowing messages from fullCreationServiceUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Jul 19, 2024
1 parent 006f013 commit b4b4c61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/account-creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ export class AccountCreator {

return new Promise((resolve, reject) => {
const listener = (event: MessageEvent) => {
if (event.origin === this.creationServiceUrl) {
console.log('Received message', { event })
if (
event.origin === this.creationServiceUrl ||
this.fullCreationServiceUrl?.includes(event.origin)
) {
window.removeEventListener('message', listener)
this.closeDialog()

Expand Down

0 comments on commit b4b4c61

Please sign in to comment.