@everymatrix/casino-game-thumbnail 1.34.0 → 1.34.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-game-thumbnail",
3
- "version": "1.34.0",
3
+ "version": "1.34.1",
4
4
  "main": "dist/casino-game-thumbnail.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": "c9ad96fd45d67455a049f61462d8b4523a78ba54"
38
+ "gitHead": "5ce0bbd8d4005bb9f6fbed830e8882a14e79712a"
39
39
  }
@@ -32,6 +32,7 @@
32
32
  export let gamepagemodalurl:string = 'false';
33
33
 
34
34
  export let endpoint:string = '';
35
+ export let categoryid:string = '';
35
36
 
36
37
  export let livelobbyendpoint:string = '';
37
38
  export let connectlive:string = '';
@@ -203,12 +204,11 @@
203
204
 
204
205
 
205
206
  const toggleFavoriteGame = (id:any):void => {
206
- let triggerFactor = "thumbnail";
207
207
 
208
208
  if (gamefavorite) {
209
- window.postMessage({ type: 'SetUnfavoredGame', id, triggerFactor }, window.location.href);
209
+ window.postMessage({ type: `SetUnfavoredGame${categoryid}`, id }, window.location.href);
210
210
  } else {
211
- window.postMessage({ type: 'SetFavoredGame', id, triggerFactor }, window.location.href);
211
+ window.postMessage({ type: `SetFavoredGame${categoryid}`, id }, window.location.href);
212
212
  }
213
213
  }
214
214