@everymatrix/casino-lobby 1.8.4 → 1.9.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/casino-lobby",
3
- "version": "1.8.4",
3
+ "version": "1.9.0",
4
4
  "main": "dist/casino-lobby.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": "58b0374c9527cbfb3a070ac6fb1744bc670aba27"
39
+ "gitHead": "931b121e18fe00e97d089fdc4f642515337a7091"
40
40
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  <script lang="ts">
4
4
  import { onMount } from "svelte";
5
- import { getDevice, checkSession } from 'rvhelper';
5
+ import { getDevice, isMobile, checkSession } from 'rvhelper';
6
6
  import { setupI18n, setLocale } from './i18n';
7
7
 
8
8
  import '@everymatrix/casino-categories-slider';
@@ -116,6 +116,7 @@
116
116
  let userAgent:string = window.navigator.userAgent;
117
117
  let isLoading:boolean = true;
118
118
  let searchClosed:boolean = false;
119
+ let gameFrameModalOpened:boolean = false;
119
120
 
120
121
  let headerPlaceholderSize:number = 0;
121
122
  let scrollTop:boolean = false;
@@ -146,6 +147,15 @@
146
147
  }
147
148
  break;
148
149
 
150
+ case 'OpenGameFrame':
151
+ gameFrameModalOpened = true;
152
+ window.postMessage({ type: 'OpenGameFrameModal', gameId: e.data.gameId, gamefunmode:e.data.gamefunmode, gamepagemodalurl:e.data.gamepagemodalurl }, window.location.href);
153
+ break;
154
+
155
+ case 'ModalClosed':
156
+ gameFrameModalOpened = false;
157
+ break;
158
+
149
159
  case 'UserSessionID':
150
160
  sessionID = e.data.session;
151
161
  playerID = e.data.userID;
@@ -279,9 +289,7 @@
279
289
  {actionevent}
280
290
  {filteredcategories}
281
291
  {mostplayed}
282
- {mostplayedrounds}
283
292
  {lastplayed}
284
- {lastplayedperiod}
285
293
  {favorites}
286
294
  {activecategory}
287
295
  {clientstyling}
@@ -355,7 +363,7 @@
355
363
  {showsubgroups}
356
364
  {winnersdatasources}>
357
365
  </casino-page>
358
- {#if gamemodal == 'true'}
366
+ {#if gamemodal == 'true' && gameFrameModalOpened == true}
359
367
  <casino-modal
360
368
  session={sessionID}
361
369
  userid={userid}