@everymatrix/casino-games-category-section 0.0.362 → 0.0.365

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.362",
3
+ "version": "0.0.365",
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": "154d1b620474e61bee3507cc52d40bfd33236024"
39
+ "gitHead": "f4dabfce4df55a591981f327a670cc250a2ed257"
40
40
  }
@@ -209,22 +209,13 @@
209
209
  }
210
210
  }
211
211
 
212
- const sessionData = JSON.parse(sessionStorage.getItem(categoryId));
213
-
214
- if(sessionData){
215
- isLoading = false;
216
-
217
- resolve(sessionData);
218
- } else {
219
- fetch(url)
212
+ fetch(url)
220
213
  .then((res:any) => res.json())
221
214
  .then((categoryData:any) => {
222
215
  dataloaded = true
223
216
  hasErrors = false;
224
217
  maxTotal = categoryData.games.total;
225
218
 
226
- sessionStorage.setItem(categoryId, JSON.stringify(categoryData));
227
-
228
219
  resolve(categoryData);
229
220
  }, (err:any) => {
230
221
  hasErrors = true;
@@ -233,7 +224,6 @@
233
224
 
234
225
  reject(err);
235
226
  });
236
- }
237
227
  });
238
228
  }
239
229