Skip to content

Commit

Permalink
fix: allowing messaged 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 270b3a7
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.data)
if (
event.origin === this.creationServiceUrl ||
event.origin === this.fullCreationServiceUrl
) {
window.removeEventListener('message', listener)
this.closeDialog()

Expand Down

0 comments on commit 270b3a7

Please sign in to comment.