@everymatrix/casino-most-played-section 1.3.4 → 1.4.1

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-most-played-section",
3
- "version": "1.3.4",
3
+ "version": "1.4.1",
4
4
  "main": "index.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": "61b113dba12330dbbaeef6e4ba84771630a15e7f"
39
+ "gitHead": "1d59a96e434455c55cc56d4e7655e9fbd4de8141"
40
40
  }
@@ -21,6 +21,7 @@
21
21
  export let visiblegames:string;
22
22
  export let favorites:string = '';
23
23
  export let lastPlayedEmpty:string = '';
24
+ export let casinomygames:string = 'false';
24
25
 
25
26
 
26
27
  let userAgent:any = window.navigator.userAgent;
@@ -96,7 +97,7 @@
96
97
  rounds: 10
97
98
  }).then((res:any) => {
98
99
  isLoading = false;
99
-
100
+ window.postMessage({ type: 'GetFavoredGame' }, window.location.href);
100
101
  if (res.count > 0) {
101
102
  let promises:any = [];
102
103
 
@@ -113,7 +114,9 @@
113
114
 
114
115
  Promise.all(promises).then((values:any) => {
115
116
  mostPlayedGames = values.map((item:any) => item[0]);
116
-
117
+ if(casinomygames === "true") {
118
+ mostPlayedGames = mostPlayedGames.slice(0, JSON.parse(visiblegames));
119
+ }
117
120
  window.postMessage({ type: 'MostPlayedData', mostPlayedGames }, window.location.href);
118
121
  });
119
122
  } else {
@@ -156,25 +159,25 @@
156
159
  <p class="SearchLoading" part="SearchLoading">No games in most played</p>
157
160
  {:else}
158
161
  <casino-games-category-section
159
- session={session}
160
- userid={userid}
161
- endpoint={endpoint}
162
- datasource={datasource}
163
- lang={lang}
164
- currency={currency}
165
- favorites={favorites}
166
- categoryid="MOSTPLAYED"
167
- categoryindex="1"
168
- categorygames="9"
169
- class="CategoryContainer"
170
- {clientstyling}
171
- {clientstylingurl}
172
- {livecasino}
173
- {visiblegames}
174
- {gamepagemodalurl}
175
- {integratedgameframedesktop}
176
- {integratedgameframemobile}
177
- />
162
+ session={session}
163
+ userid={userid}
164
+ endpoint={endpoint}
165
+ datasource={datasource}
166
+ lang={lang}
167
+ currency={currency}
168
+ favorites={favorites}
169
+ categoryid="MOSTPLAYED"
170
+ categoryindex="1"
171
+ categorygames="9"
172
+ class="CategoryContainer"
173
+ {clientstyling}
174
+ {clientstylingurl}
175
+ {livecasino}
176
+ {visiblegames}
177
+ {gamepagemodalurl}
178
+ {integratedgameframedesktop}
179
+ {integratedgameframemobile}
180
+ {casinomygames} />
178
181
  {/if}
179
182
  </div>
180
183
  </div>