@everymatrix/casino-search 1.0.3 → 1.0.8

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-search",
3
- "version": "1.0.3",
3
+ "version": "1.0.8",
4
4
  "main": "index.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -74,6 +74,13 @@
74
74
  }
75
75
  }
76
76
  sendSearchStatus(searchActive);
77
+
78
+ //Analytics event
79
+ if(typeof gtag == 'function'){
80
+ gtag('event', 'SearchInitialized', {
81
+ 'context': 'SearchWidget'
82
+ });
83
+ }
77
84
  }
78
85
 
79
86
  const getGames = (url:URL):Promise<any> => {
@@ -190,9 +197,7 @@
190
197
  .then((data:any) => {
191
198
  cssFile.innerHTML = data
192
199
 
193
- if (customStylingContainer) {
194
- setTimeout(() => { customStylingContainer.appendChild(cssFile) }, 1);
195
- }
200
+ setTimeout(() => { customStylingContainer.appendChild(cssFile) }, 1);
196
201
  });
197
202
  }
198
203
 
@@ -224,8 +229,8 @@
224
229
  });
225
230
 
226
231
  $: lang && setActiveLanguage();
227
- $: clientstyling && setClientStyling();
228
- $: clientstylingurl && setClientStylingURL();
232
+ $: clientstyling && customStylingContainer && setClientStyling();
233
+ $: clientstylingurl && customStylingContainer && setClientStylingURL();
229
234
 
230
235
  </script>
231
236
 
@@ -281,6 +286,8 @@
281
286
  endpoint={endpoint}
282
287
  {integratedgameframedesktop}
283
288
  {integratedgameframemobile}
289
+ {clientstyling}
290
+ {clientstylingurl}
284
291
  ></casino-game-thumbnail>
285
292
  {/each}
286
293
  {/if}