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 0f1fcce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/account-creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ export class AccountCreator {

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

Expand Down

0 comments on commit 0f1fcce

Please sign in to comment.