@everymatrix/casino-categories-slider 0.0.418 → 0.0.419
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-categories-slider",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.419",
|
|
4
4
|
"main": "dist/casino-categories-slider.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": "200d3b7284674401314097b77f197d355e36041a"
|
|
40
40
|
}
|
|
@@ -307,6 +307,8 @@
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
const setActiveCategory = ():void => {
|
|
310
|
+
let checkIfSubcategory = activecategory.split('$');
|
|
311
|
+
activecategory = (checkIfSubcategory.length > 2) ? activecategory.split('$').slice(0, 2).join('$') : activecategory;
|
|
310
312
|
activeIndex = categories.map((item) => item.id).indexOf(decodeURI(activecategory));
|
|
311
313
|
}
|
|
312
314
|
|