@everymatrix/casino-game-page 1.10.0 → 1.10.2

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-page",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "main": "dist/casino-game-page.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": "9ccf680032da454b5c7417f978da996ec52e4554"
38
+ "gitHead": "0608b5f0449d8bd54dcb9e847e35e9b91c4398a2"
39
39
  }
@@ -138,9 +138,8 @@
138
138
  game = formatGameLaunchUrl(data[0]);
139
139
  isLoading = false;
140
140
  if (game.launchUrl) {
141
- detailsObtained = true;
142
- funMode = playforfun == 'true' ? game.hasFunMode : false;
143
- anonymousFunMode = playforfun == 'true' ? game.hasAnonymousFunMode : false;
141
+ game.isFavored = setGameData(game, game.hasFunMode);
142
+ isFavLoading = false;
144
143
  }
145
144
  }, (err:any) => {
146
145
  console.error('There was an error', err);
@@ -282,9 +281,7 @@
282
281
 
283
282
  const openGameFrame = (gameId:string, gameFunMode:boolean):void => {
284
283
  let url:URL = new URL(`${endpoint}/casino/games/${gameId}`);
285
-
286
284
  url.searchParams.append('language', lang);
287
-
288
285
  fetch(url.href)
289
286
  .then((res:any) => res.json())
290
287
  .then((data:any) => {
@@ -292,6 +289,7 @@
292
289
  isLoading = false;
293
290
  if (game.launchUrl) {
294
291
  game.isFavored = setGameData(game, gameFunMode);
292
+ isFavLoading = false;
295
293
  }
296
294
  }).finally(() => {
297
295
  isLoading = false;
@@ -658,7 +656,7 @@
658
656
  </div>
659
657
  {/if}
660
658
  {:else}
661
- <div class="LoaderRipple"><div></div><div></div></div>
659
+ <div class="LoaderRipple {haspanicbutton == 'true' ? 'LoaderWithPanicButton' : ''}"><div></div><div></div></div>
662
660
  {/if}
663
661
  {/if}
664
662
  <div class="GameDetails" part="GameDetails">
@@ -1017,7 +1015,7 @@
1017
1015
  width: 80px;
1018
1016
  height: 80px;
1019
1017
  position: absolute;
1020
- top: 40px;
1018
+ top: 0;
1021
1019
  left: -8px;
1022
1020
  div {
1023
1021
  position: absolute;
@@ -1029,6 +1027,9 @@
1029
1027
  animation-delay: -0.5s;
1030
1028
  }
1031
1029
  }
1030
+ &.LoaderWithPanicButton {
1031
+ top: 40px;
1032
+ }
1032
1033
  }
1033
1034
 
1034
1035
  @keyframes ripple-effect {