@greymass/create-account
Advanced tools
Comparing version 1.0.1 to 1.0.2
/** | ||
* @greymass/create-account v1.0.1 | ||
* @greymass/create-account v1.0.2 | ||
* https://github.com/greymass/create-account | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* @greymass/create-account v1.0.1 | ||
* @greymass/create-account v1.0.2 | ||
* https://github.com/greymass/create-account | ||
@@ -79,3 +79,5 @@ * | ||
const listener = (event) => { | ||
if (event.origin === this.creationServiceUrl) { | ||
var _a; | ||
if (event.origin === this.creationServiceUrl || | ||
((_a = this.fullCreationServiceUrl) === null || _a === void 0 ? void 0 : _a.includes(event.origin))) { | ||
window.removeEventListener('message', listener); | ||
@@ -82,0 +84,0 @@ this.closeDialog(); |
/** | ||
* @greymass/create-account v1.0.1 | ||
* @greymass/create-account v1.0.2 | ||
* https://github.com/greymass/create-account | ||
@@ -73,3 +73,4 @@ * | ||
const listener = (event) => { | ||
if (event.origin === this.creationServiceUrl) { | ||
if (event.origin === this.creationServiceUrl || | ||
this.fullCreationServiceUrl?.includes(event.origin)) { | ||
window.removeEventListener('message', listener); | ||
@@ -76,0 +77,0 @@ this.closeDialog(); |
{ | ||
"name": "@greymass/create-account", | ||
"description": "An account creation library for Antelope chains that leverages Anchor.", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"homepage": "https://github.com/greymass/create-account", | ||
@@ -6,0 +6,0 @@ "license": "BSD-3-Clause", |
@@ -53,3 +53,6 @@ import { Name } from '@wharfkit/antelope' | ||
const listener = (event: MessageEvent) => { | ||
if (event.origin === this.creationServiceUrl) { | ||
if ( | ||
event.origin === this.creationServiceUrl || | ||
this.fullCreationServiceUrl?.includes(event.origin) | ||
) { | ||
window.removeEventListener('message', listener) | ||
@@ -56,0 +59,0 @@ this.closeDialog() |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
26436
372