@everymatrix/casino-game-page 1.1.2 → 1.1.5
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.1.
|
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": "
|
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
|
-
|
312
|
+
gamePageBackground.style.height = `${gameFrameContainer.style.height}px`;
|
313
313
|
}
|
314
314
|
|
315
315
|
observer.unobserve(gameFrameContainer);
|