@everymatrix/casino-tournaments-page-controller 0.0.90 → 0.0.94
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-tournaments-page-controller",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.94",
|
|
4
4
|
"main": "dist/casino-tournaments-page-controller.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "22c01bfe195ffacb2177610d0728c9f876e3a057"
|
|
41
41
|
}
|
|
@@ -99,20 +99,14 @@
|
|
|
99
99
|
reqHeaders.append('language', lang);
|
|
100
100
|
reqHeaders.append('platform', getDevice(userAgent));
|
|
101
101
|
|
|
102
|
-
if (isLoggedIn) {
|
|
103
|
-
reqHeaders.append("X-SessionID", sessionID);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
102
|
let requestOptions = {
|
|
107
103
|
method: 'GET',
|
|
108
104
|
headers: reqHeaders,
|
|
109
105
|
};
|
|
110
106
|
|
|
111
|
-
setTimeout(() => {
|
|
112
107
|
fetch(url, requestOptions)
|
|
113
108
|
.then((res:any) => res.json())
|
|
114
109
|
.then((res:any) => {
|
|
115
|
-
console.log('res', res)
|
|
116
110
|
tournamentTableData = transformTableData(res.items);
|
|
117
111
|
showTable = true;
|
|
118
112
|
|
|
@@ -123,7 +117,6 @@
|
|
|
123
117
|
window.postMessage({ type: 'CasinoTableFirstRowData', tableData: firstRowData }, window.location.href);
|
|
124
118
|
}
|
|
125
119
|
});
|
|
126
|
-
},100);
|
|
127
120
|
}
|
|
128
121
|
|
|
129
122
|
const messageHandler = (e:any) => {
|
|
@@ -184,7 +177,7 @@
|
|
|
184
177
|
});
|
|
185
178
|
|
|
186
179
|
$: session && userid && setSession();
|
|
187
|
-
$: tourid && endpoint && initialLoad();
|
|
180
|
+
$: tourid && endpoint && session && initialLoad();
|
|
188
181
|
$: tourid && cmsendpoint && getDataFromCMS();
|
|
189
182
|
</script>
|
|
190
183
|
|