@everymatrix/casino-lobby 1.33.5 → 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/index.html CHANGED
@@ -19,6 +19,9 @@
19
19
  endpoint="https://demo-api.stage.norway.everymatrix.com"
20
20
  datasource="RNG"
21
21
  winnersdatasources="RNG"
22
+ session="aa4ab578-06dd-4019-b2e1-108f017e42b0"
23
+ userid="4506648"
24
+ favorites="true"
22
25
  lang="en"
23
26
  userroles="everyone"
24
27
  currency="EUR"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-lobby",
3
- "version": "1.33.5",
3
+ "version": "1.34.1",
4
4
  "main": "dist/casino-lobby.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": "bf9e67b030b6c15e53a4a29a3262be8d10cae33a"
38
+ "gitHead": "5ce0bbd8d4005bb9f6fbed830e8882a14e79712a"
39
39
  }
@@ -161,16 +161,15 @@
161
161
  sessionID = e.data.session;
162
162
  playerID = e.data.userID;
163
163
  break;
164
-
165
- case 'CategoryChange':
166
- window.postMessage({type: 'GetFavoredGame'}, window.location.href);
164
+
165
+ case 'CategoryChange':
167
166
  activecategory = e.data.itemId;
168
167
  break;
169
168
  }
170
169
  }
171
170
  }
172
171
 
173
- const checkAttrs = ():boolean => {
172
+ const checkAttrs = ():boolean => {
174
173
  if (!endpoint) {
175
174
  error = "Endpoint is missing! Please provide a valid endpointURL.";
176
175
  hasErrors = true;
@@ -258,18 +257,12 @@
258
257
 
259
258
 
260
259
  onMount(() => {
261
- window.addEventListener('popstate', (_) => {
262
- window.postMessage({type: 'GetFavoredGame'}, window.location.href);
263
- });
264
260
  window.addEventListener('message', messageHandler, false);
265
261
 
266
262
  headerPlaceholderSize = (getDevice(userAgent) === 'PC') ? parseInt(desktopoffset) : parseInt(mobileoffset);
267
263
 
268
264
  return () => {
269
265
  window.removeEventListener('message', messageHandler);
270
- window.removeEventListener('popstate', (_) => {
271
- window.postMessage({type: 'GetFavoredGame'}, window.location.href);
272
- });
273
266
  }
274
267
  });
275
268