@everymatrix/casino-game-page 1.5.2 → 1.5.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-game-page",
|
3
|
-
"version": "1.5.
|
3
|
+
"version": "1.5.4",
|
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": "0515078fefc5290a183afcfb2608cf265f2322c7"
|
40
40
|
}
|
@@ -195,15 +195,21 @@
|
|
195
195
|
break;
|
196
196
|
|
197
197
|
case 'ModalClosed':
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
198
|
+
if (!(integratedgameframedesktop == 'false') || isMobile(userAgent)) {
|
199
|
+
|
200
|
+
window.postMessage({ type: 'EnableScroll'}, window.location.href);
|
201
|
+
// the timeout is necessary in order to sync with the closing of the modal frame and provide a smoother transition
|
202
|
+
|
203
|
+
showModal = 'false';
|
204
|
+
|
205
|
+
removeEventsToDisplayedElements();
|
206
|
+
if(isMobile(userAgent)) {
|
207
|
+
setTimeout(() => { detailsObtained = integratedgameframemobile === "true";}, 500);
|
208
|
+
} else {
|
209
|
+
setTimeout(() => { detailsObtained = integratedgameframedesktop === "true";}, 500);
|
210
|
+
}
|
206
211
|
}
|
212
|
+
|
207
213
|
break;
|
208
214
|
|
209
215
|
case 'UserSessionID':
|
@@ -395,7 +401,9 @@
|
|
395
401
|
|
396
402
|
// End section: keep aspect ratio for iframe on resize
|
397
403
|
const toggleLogin = ():void => {
|
398
|
-
if (loginevent) {
|
404
|
+
if (loginevent && integratedgameframedesktop == 'false' && !isMobile(userAgent)) {
|
405
|
+
window.postMessage({ type: loginevent, transition: 'Login' }, window.location.href);
|
406
|
+
} else if (loginevent) {
|
399
407
|
window.postMessage({ type: loginevent, transition: 'Login' }, window.location.href);
|
400
408
|
window.postMessage({ type: 'ModalClosed' }, window.location.href);
|
401
409
|
}
|
@@ -414,7 +422,9 @@
|
|
414
422
|
}
|
415
423
|
|
416
424
|
const toggleRegister = ():void => {
|
417
|
-
if (registerevent) {
|
425
|
+
if (registerevent && integratedgameframedesktop == 'false' && !isMobile(userAgent)) {
|
426
|
+
window.postMessage({ type: registerevent, transition: 'Register' }, window.location.href);
|
427
|
+
} else if (registerevent) {
|
418
428
|
window.postMessage({ type: registerevent, transition: 'Register' }, window.location.href);
|
419
429
|
window.postMessage({ type: 'ModalClosed' }, window.location.href);
|
420
430
|
}
|