@everymatrix/casino-game-page 1.1.2 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-game-page",
3
- "version": "1.1.2",
3
+ "version": "1.1.5",
4
4
  "main": "dist/casino-game-page.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": "a331dfb7a0daca971fec89907140c9353dc5f0b3"
39
+ "gitHead": "8382d5b109b967bd6756236bd96bb5a13d51e40e"
40
40
  }
@@ -139,6 +139,7 @@
139
139
  detailsObtained = true;
140
140
  funMode = playforfun == 'true' ? game.hasFunMode : false;
141
141
  anonymousFunMode = playforfun == 'true' ? game.hasAnonymousFunMode : false;
142
+ game.isFavored = checkFavorite(game.id);
142
143
  }
143
144
  }, (err:any) => {
144
145
  console.error('There was an error', err);
@@ -257,7 +258,6 @@
257
258
 
258
259
  const toggleFavoriteGame = (id:any):void => {
259
260
  let triggerFactor = "gamepage";
260
-
261
261
  if (game.isFavored) {
262
262
  window.postMessage({ type: 'SetUnfavoredGame', id, triggerFactor }, window.location.href);
263
263
  game.isFavored = false;
@@ -309,7 +309,7 @@
309
309
  gameInnerContainer.style.height = `${gameRationedHeight}px`;
310
310
 
311
311
  if(isIntersecting){
312
- gamePageBackground.style.height = `${gameFrameContainer.style.height}px`;
312
+ gamePageBackground.style.height = `${gameFrameContainer.style.height}px`;
313
313
  }
314
314
 
315
315
  observer.unobserve(gameFrameContainer);