@everymatrix/casino-game-thumbnail 0.0.271 → 0.0.274

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": "0.0.271",
3
+ "version": "0.0.274",
4
4
  "main": "dist/casino-game-thumbnail.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": "656de48b1f32eaa465896b097c02035605903871"
39
+ "gitHead": "5f4a46f4ce5cd4820b4f3805beaf2130f76cd364"
40
40
  }
@@ -165,17 +165,17 @@
165
165
  }
166
166
 
167
167
  const toggleGameFrame = (gameId:any):void => {
168
+ if (searchitem) {
169
+ window.postMessage({ type: 'SearchedItemClicked', gameId }, window.location.href);
170
+ }
168
171
  if (isMobile(userAgent)) {
169
172
  window.postMessage({ type: 'OpenGameFrame', gameId, gamefunmode }, window.location.href)
170
173
  } else {
171
174
  window.postMessage({ type: 'ShowGameModal', gameId }, window.location.href);
172
175
  }
173
-
174
- if (searchitem) {
175
- window.postMessage({ type: 'SearchedItemClicked', gameId }, window.location.href);
176
- }
177
176
  };
178
177
 
178
+
179
179
  const toggleFavoriteGame = (id:any):void => {
180
180
  let triggerFactor = "thumbnail";
181
181