@everymatrix/casino-game-page 0.0.377 → 0.0.379
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": "0.0.
|
3
|
+
"version": "0.0.379",
|
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": "1bfb9d93a7ec8db47cd50a674a74d4542165de8d"
|
40
40
|
}
|
@@ -109,7 +109,7 @@
|
|
109
109
|
return game;
|
110
110
|
}
|
111
111
|
|
112
|
-
const createGameURL = (gameId:string, modal
|
112
|
+
const createGameURL = (gameId:string, modal?:boolean):void => {
|
113
113
|
let url:URL = new URL(`${endpoint}/casino/games/${gameId}`);
|
114
114
|
|
115
115
|
url.searchParams.append('language', lang);
|
@@ -121,7 +121,6 @@
|
|
121
121
|
.then((res:any) => res.json())
|
122
122
|
.then((data:any) => {
|
123
123
|
game = formatGameLaunchUrl(data[0]);
|
124
|
-
|
125
124
|
if (game.launchUrl) {
|
126
125
|
detailsObtained = true;
|
127
126
|
funMode = playforfun == 'true' ? game.hasFunMode : false;
|
@@ -129,7 +128,6 @@
|
|
129
128
|
}
|
130
129
|
}, (err:any) => {
|
131
130
|
console.error('There was an error', err);
|
132
|
-
|
133
131
|
hasErrors = true;
|
134
132
|
}).then(() => {
|
135
133
|
if (gameFrameContainer) {
|
@@ -283,7 +281,6 @@
|
|
283
281
|
const maxIntersectionRatio = 0.5;
|
284
282
|
const intersectionRatio = entries[0].intersectionRatio;
|
285
283
|
const isIntersecting = entries[0].isIntersecting;
|
286
|
-
|
287
284
|
const gameFrameContainerHeight = parseInt(
|
288
285
|
getComputedStyle(gameFrameContainer).height
|
289
286
|
);
|
@@ -359,7 +356,7 @@
|
|
359
356
|
if(gameState == 'false') {
|
360
357
|
window.open(game.launchUrl, '_blank');
|
361
358
|
} else if(gameState == 'true') {
|
362
|
-
window.postMessage({ type: 'OpenIntegratedGameFrame', gameId: game.id
|
359
|
+
window.postMessage({ type: 'OpenIntegratedGameFrame', gameId: game.id }, window.location.href);
|
363
360
|
}
|
364
361
|
}
|
365
362
|
|
@@ -561,7 +558,7 @@
|
|
561
558
|
|
562
559
|
|
563
560
|
$: lang && setActiveLanguage();
|
564
|
-
$: endpoint && gameid && lang && createGameURL(gameid);
|
561
|
+
$: endpoint && gameid && lang && createGameURL(gameid, true);
|
565
562
|
$: session && userid && endpoint && setSession();
|
566
563
|
$: checksession == 'false' && session && endpoint && setSession();
|
567
564
|
$: clientstyling && setClientStyling();
|