@everymatrix/casino-lobby 1.13.2 → 1.13.4

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-lobby",
3
- "version": "1.13.2",
3
+ "version": "1.13.4",
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": "97c6431698aa270f6d350dc219614df9a401b83d"
38
+ "gitHead": "3fc0e16a0d6f749795cc270740011e6b93b6b9d6"
39
39
  }
@@ -248,13 +248,21 @@
248
248
  });
249
249
  }
250
250
 
251
+
252
+
251
253
  onMount(() => {
254
+ window.addEventListener('popstate', (_) => {
255
+ window.postMessage({type: 'GetFavoredGame'}, window.location.href);
256
+ });
252
257
  window.addEventListener('message', messageHandler, false);
253
258
 
254
259
  headerPlaceholderSize = (getDevice(userAgent) === 'PC') ? parseInt(desktopoffset) : parseInt(mobileoffset);
255
260
 
256
261
  return () => {
257
262
  window.removeEventListener('message', messageHandler);
263
+ window.removeEventListener('popstate', (_) => {
264
+ window.postMessage({type: 'GetFavoredGame'}, window.location.href);
265
+ });
258
266
  }
259
267
  });
260
268