@everymatrix/casino-game-page 0.0.274 → 0.0.277

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/casino-game-page",
3
- "version": "0.0.274",
3
+ "version": "0.0.277",
4
4
  "main": "dist/casino-game-page.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "5f4a46f4ce5cd4820b4f3805beaf2130f76cd364"
39
+ "gitHead": "d2e5336b4c4e4506334e1811991a2fbd332110ef"
40
40
  }
@@ -141,9 +141,8 @@
141
141
  break;
142
142
 
143
143
  case 'ModalClosed':
144
- setTimeout(() => { // the timeout is necessary in order to sync with the closing of the modal frame and provide a smoother transition
145
- detailsObtained = false;
146
- }, 500);
144
+ // the timeout is necessary in order to sync with the closing of the modal frame and provide a smoother transition
145
+ setTimeout(() => { detailsObtained = integratedgameframe === "true";}, 500);
147
146
  break;
148
147
 
149
148
  case 'UserSessionID':
@@ -275,7 +274,7 @@
275
274
  } else if(integratedgameframe == 'false') {
276
275
  window.open(game.launchUrl, '_blank');
277
276
  } else if(integratedgameframe == 'true') {
278
- window.postMessage({ type: 'OpenIntegratedGameFrame' }, window.location.href);
277
+ window.postMessage({ type: 'OpenIntegratedGameFrame', gameId: game.id, }, window.location.href);
279
278
  }
280
279
  }
281
280
 
@@ -308,6 +307,7 @@
308
307
  if (registerevent) {
309
308
  window.postMessage({ type: registerevent, transition: 'Register' }, window.location.href);
310
309
  window.postMessage({ type: 'ModalClosed' }, window.location.href);
310
+
311
311
  }
312
312
 
313
313
  if (registerurl) {