@everymatrix/casino-games-category-section 0.0.359 → 0.0.361
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-games-category-section",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.361",
|
|
4
4
|
"main": "dist/casino-games-category-section.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": "0fe9249cd4a3ea07ecc6ea0f11bee32a4d259c7b"
|
|
40
40
|
}
|
|
@@ -30,6 +30,9 @@
|
|
|
30
30
|
export let gamepagemodalurl:string = 'false';
|
|
31
31
|
export let enablecasinowinners:string = 'true';
|
|
32
32
|
|
|
33
|
+
export let tabsorder:string = '';
|
|
34
|
+
export let enableautoscroll:string = '';
|
|
35
|
+
|
|
33
36
|
export let once = true;
|
|
34
37
|
export let top = 0;
|
|
35
38
|
export let bottom = 0;
|
|
@@ -206,21 +209,31 @@
|
|
|
206
209
|
}
|
|
207
210
|
}
|
|
208
211
|
|
|
209
|
-
|
|
212
|
+
const sessionData = JSON.parse(sessionStorage.getItem(categoryId));
|
|
213
|
+
|
|
214
|
+
if(sessionData){
|
|
215
|
+
isLoading = false;
|
|
216
|
+
|
|
217
|
+
resolve(sessionData);
|
|
218
|
+
} else {
|
|
219
|
+
fetch(url)
|
|
210
220
|
.then((res:any) => res.json())
|
|
211
|
-
.then((
|
|
221
|
+
.then((categoryData:any) => {
|
|
212
222
|
dataloaded = true
|
|
213
223
|
hasErrors = false;
|
|
214
|
-
maxTotal =
|
|
224
|
+
maxTotal = categoryData.games.total;
|
|
215
225
|
|
|
216
|
-
|
|
226
|
+
sessionStorage.setItem(categoryId, JSON.stringify(categoryData));
|
|
227
|
+
|
|
228
|
+
resolve(categoryData);
|
|
217
229
|
}, (err:any) => {
|
|
218
230
|
hasErrors = true;
|
|
219
|
-
|
|
231
|
+
|
|
220
232
|
console.error(err);
|
|
221
|
-
|
|
233
|
+
|
|
222
234
|
reject(err);
|
|
223
235
|
});
|
|
236
|
+
}
|
|
224
237
|
});
|
|
225
238
|
}
|
|
226
239
|
|
|
@@ -588,6 +601,8 @@
|
|
|
588
601
|
{defaultcurrency}
|
|
589
602
|
{clientstyling}
|
|
590
603
|
{clientstylingurl}
|
|
604
|
+
{tabsorder}
|
|
605
|
+
{enableautoscroll}
|
|
591
606
|
{endpoint}
|
|
592
607
|
></casino-winners>
|
|
593
608
|
</div>
|