@everymatrix/general-player-login-form 1.27.10 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-player-login-form",
3
- "version": "1.27.10",
3
+ "version": "1.28.0",
4
4
  "main": "dist/general-player-login-form.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "a54060c05663ae9ee398af1cfd3ca75c4701863a"
38
+ "gitHead": "d291acb27fcd4cf8217ec1c98666c02bfb1aea9f"
39
39
  }
@@ -217,10 +217,10 @@
217
217
 
218
218
  return res.json();
219
219
  }).then((data:any):void => {
220
- window.postMessage({
221
- type: 'PlayerActions',
222
- data: data.actions
223
- }, window.location.href);
220
+
221
+ if ( data.actions !== undefined ) {
222
+ window.postMessage({ type: 'PlayerActions' }, window.location.href);
223
+ }
224
224
 
225
225
  if(smsverification === 'true' && data.code === 4) {
226
226
  playerId = data.detail.userId;