@everymatrix/casino-page 0.0.237 → 0.0.241
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 +4 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-page",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.241",
|
|
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": "298253a66c9a5be49e9c3c631b327129dc84c541"
|
|
40
40
|
}
|
package/src/CasinoPage.svelte
CHANGED
|
@@ -141,15 +141,12 @@
|
|
|
141
141
|
if (res.count > 0) {
|
|
142
142
|
let promises:any = [];
|
|
143
143
|
|
|
144
|
-
if(livecasino) {
|
|
145
|
-
res.items = [{gameId: '15786'}, {gameId: '15788'}];
|
|
146
|
-
}
|
|
147
144
|
res.items.forEach((item:any) => {
|
|
148
|
-
let url = new URL(`${endpoint}/casino/games/${item.gameId}`);
|
|
145
|
+
let url:URL = new URL(`${endpoint}/casino/games/${item.gameId}`);
|
|
149
146
|
|
|
150
147
|
url.searchParams.append('datasource', datasource);
|
|
151
|
-
if(livecasino) {
|
|
152
|
-
promises.push(fetch(url).then((res:any) => res.json()));
|
|
148
|
+
if (livecasino) {
|
|
149
|
+
promises.push(fetch(url.href).then((res:any) => res.json()));
|
|
153
150
|
} else {
|
|
154
151
|
promises.push(fetch(url.href).then((res:any) => res.json()));
|
|
155
152
|
}
|
|
@@ -750,7 +747,7 @@
|
|
|
750
747
|
}
|
|
751
748
|
|
|
752
749
|
setLocale(lang);
|
|
753
|
-
|
|
750
|
+
|
|
754
751
|
let categoriesUrl = new URL(`${endpoint}/casino/groups/${datasource}`);
|
|
755
752
|
|
|
756
753
|
categoriesUrl.searchParams.append('language', lang);
|