@everymatrix/casino-game-thumbnail 1.3.4 → 1.4.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-game-thumbnail",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
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": "
|
|
39
|
+
"gitHead": "be1fa07132bd9efec772e8532a8bc54c82eb1cb6"
|
|
40
40
|
}
|
|
@@ -183,27 +183,18 @@
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
const toggleGameFrame = (gameId:any):void => {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
//Analytics event
|
|
199
|
-
if(typeof gtag == 'function'){
|
|
200
|
-
gtag('event', 'OpenGame', {
|
|
201
|
-
'context': 'GameThumbnail',
|
|
202
|
-
'gameId' : `${gameId}`,
|
|
203
|
-
'userId' : `${playerID ? playerID : 'Not logged in'}`
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
}
|
|
186
|
+
|
|
187
|
+
window.postMessage({ type: 'SearchedItemClicked', gameId }, window.location.href);
|
|
188
|
+
|
|
189
|
+
//Analytics event -- if game was searched
|
|
190
|
+
if(typeof gtag == 'function'){
|
|
191
|
+
gtag('event', 'OpenGame', {
|
|
192
|
+
'context' : 'GameThumbnail--Searched',
|
|
193
|
+
'gameId' : `${gameId}`,
|
|
194
|
+
'userId' : `${playerID ? playerID : 'Not logged in'}`
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
|
|
207
198
|
|
|
208
199
|
if (isMobile(userAgent) && integratedgameframemobile == "true") {
|
|
209
200
|
window.postMessage({ type: 'OpenGameFrame', gameId, gamefunmode, gamepagemodalurl, isMobile: isMobile(userAgent), source: 'GameThumbnail' }, window.location.href);
|