@everymatrix/casino-page 0.0.264 → 0.0.265
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/dist/casino-page.js +1 -1
- package/dist/casino-page.js.map +1 -1
- package/package.json +2 -2
- package/src/CasinoPage.svelte +12 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-page",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.265",
|
|
4
4
|
"main": "dist/casino-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": "90b1bab32edc865bbff30a158a011715e91a5799"
|
|
40
40
|
}
|
package/src/CasinoPage.svelte
CHANGED
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
export let activecategory:string = '';
|
|
38
38
|
export let livecasino:string = 'false';
|
|
39
39
|
export let playrandomgame:string = 'false';
|
|
40
|
-
|
|
41
40
|
let userAgent:any = window.navigator.userAgent;
|
|
42
41
|
let gameevent:string;
|
|
43
42
|
|
|
@@ -119,7 +118,7 @@
|
|
|
119
118
|
// needs to be executed after the page has been populated
|
|
120
119
|
setTimeout(() => {
|
|
121
120
|
window.postMessage({ type: 'WidgetTopReference', scrollTop }, window.location.href);
|
|
122
|
-
}
|
|
121
|
+
});
|
|
123
122
|
switch(categoryEvent.data.itemId) {
|
|
124
123
|
case 'LOBBY':
|
|
125
124
|
lobbyScreen = true;
|
|
@@ -182,9 +181,12 @@
|
|
|
182
181
|
favoritesScreen = false;
|
|
183
182
|
mostPlayedScreen = false;
|
|
184
183
|
activeCategory = categoryEvent.data.itemId;
|
|
184
|
+
//@TODO: if we remove the settimeout, the postmessage does not execute, at all - weird behaviour
|
|
185
185
|
setTimeout(() => {
|
|
186
|
-
window.postMessage({ type: 'CategoryUpdate', itemId: activeCategory
|
|
187
|
-
},
|
|
186
|
+
window.postMessage({ type: 'CategoryUpdate', itemId: activeCategory }, window.location.href);
|
|
187
|
+
}, 500);
|
|
188
|
+
|
|
189
|
+
|
|
188
190
|
break;
|
|
189
191
|
}
|
|
190
192
|
}
|
|
@@ -711,7 +713,7 @@
|
|
|
711
713
|
if(searchElementWrapper) {
|
|
712
714
|
searchPositionTop = searchElementWrapper.getBoundingClientRect().top + document.body.getBoundingClientRect().top;
|
|
713
715
|
}
|
|
714
|
-
if (document.documentElement.scrollTop > searchPositionTop || searchPositionTop > 130){
|
|
716
|
+
if (document.documentElement.scrollTop > searchPositionTop || searchPositionTop > 130) {
|
|
715
717
|
adjustingScroll = true;
|
|
716
718
|
} else {
|
|
717
719
|
adjustingScroll = false;
|
|
@@ -1006,6 +1008,7 @@
|
|
|
1006
1008
|
{clientstyling}
|
|
1007
1009
|
{clientstylingurl}
|
|
1008
1010
|
{livecasino}
|
|
1011
|
+
{visiblegames}
|
|
1009
1012
|
/>
|
|
1010
1013
|
{:else}
|
|
1011
1014
|
{#if lobbyScreen}
|
|
@@ -1027,6 +1030,7 @@
|
|
|
1027
1030
|
{clientstyling}
|
|
1028
1031
|
{clientstylingurl}
|
|
1029
1032
|
{livecasino}
|
|
1033
|
+
{visiblegames}
|
|
1030
1034
|
/>
|
|
1031
1035
|
{/each}
|
|
1032
1036
|
{:else if favoritesScreen}
|
|
@@ -1044,6 +1048,7 @@
|
|
|
1044
1048
|
{clientstyling}
|
|
1045
1049
|
{clientstylingurl}
|
|
1046
1050
|
{livecasino}
|
|
1051
|
+
{visiblegames}
|
|
1047
1052
|
/>
|
|
1048
1053
|
{:else if mostPlayedScreen}
|
|
1049
1054
|
{#if mostPlayedEmpty}
|
|
@@ -1064,6 +1069,7 @@
|
|
|
1064
1069
|
{clientstyling}
|
|
1065
1070
|
{clientstylingurl}
|
|
1066
1071
|
{livecasino}
|
|
1072
|
+
{visiblegames}
|
|
1067
1073
|
/>
|
|
1068
1074
|
{/if}
|
|
1069
1075
|
{:else}
|
|
@@ -1082,6 +1088,7 @@
|
|
|
1082
1088
|
{clientstyling}
|
|
1083
1089
|
{clientstylingurl}
|
|
1084
1090
|
{livecasino}
|
|
1091
|
+
{visiblegames}
|
|
1085
1092
|
/>
|
|
1086
1093
|
{/if}
|
|
1087
1094
|
{/if}
|