@everymatrix/casino-games-category-section 0.0.110 → 0.0.114

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.110",
3
+ "version": "0.0.114",
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": "227565333eed0ad40441b20043cba42aae690417"
39
+ "gitHead": "53e04e60c21423dc2b6600a325c5450f60105dd9"
40
40
  }
@@ -396,22 +396,17 @@
396
396
  }
397
397
 
398
398
  const setClientStylingURL = () => {
399
- let cssFile = document.createElement('style');
400
- cssFile.innerHTML = `@import ${clientstylingurl}`;
399
+ let cssFile:HTMLElement = document.createElement('style');
401
400
 
402
- if (clientstylingurl) {
403
- let url = new URL(clientstylingurl);
401
+ fetch(new URL(clientstylingurl))
402
+ .then((res:any) => res.text())
403
+ .then((data:any) => {
404
+ cssFile.innerHTML = data
404
405
 
405
- fetch(url)
406
- .then((res:any) => res.text())
407
- .then((data:any) => {
408
- cssFile.innerHTML = data
409
-
410
- if (customStylingContainer) {
411
- setTimeout(() => { customStylingContainer.appendChild(cssFile); });
412
- }
413
- });
414
- }
406
+ if (customStylingContainer) {
407
+ setTimeout(() => { customStylingContainer.appendChild(cssFile); }, 1);
408
+ }
409
+ });
415
410
  }
416
411
 
417
412
  onMount(() => {