@everymatrix/casino-game-page 1.0.16 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-game-page",
3
- "version": "1.0.16",
3
+ "version": "1.1.0",
4
4
  "main": "dist/casino-game-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": "526e9d4877d11a6372af0e39b2c9db7c8b640737"
39
+ "gitHead": "62036ada223f2b4f7b64d99a81ab2229ecba3cf1"
40
40
  }
@@ -522,30 +522,6 @@
522
522
 
523
523
  }
524
524
 
525
- const setClientStyling = ():void => {
526
- let sheet = document.createElement('style');
527
- sheet.innerHTML = clientstyling;
528
- customStylingContainer.appendChild(sheet);
529
- }
530
-
531
- const setClientStylingURL = ():void => {
532
- let cssFile:HTMLElement = document.createElement('style');
533
-
534
- if (clientstylingurl) {
535
- let url:URL = new URL(clientstylingurl);
536
-
537
- fetch(url.href)
538
- .then((res:any) => res.text())
539
- .then((data:any) => {
540
- cssFile.innerHTML = data
541
-
542
- if (customStylingContainer) {
543
- setTimeout(() => { customStylingContainer.appendChild(cssFile); }, 1);
544
- }
545
- });
546
- }
547
- }
548
-
549
525
  const startInterval = (e:any):void => {
550
526
  timer = 0;
551
527
 
@@ -578,6 +554,28 @@
578
554
  resizeIframeIfNotVisible();
579
555
  }
580
556
 
557
+ const setClientStyling = ():void => {
558
+ let sheet = document.createElement('style');
559
+ sheet.innerHTML = clientstyling;
560
+ customStylingContainer.appendChild(sheet);
561
+ }
562
+
563
+ const setClientStylingURL = ():void => {
564
+ let cssFile:HTMLElement = document.createElement('style');
565
+
566
+ if (clientstylingurl) {
567
+ let url:URL = new URL(clientstylingurl);
568
+
569
+ fetch(url.href)
570
+ .then((res:any) => res.text())
571
+ .then((data:any) => {
572
+ cssFile.innerHTML = data
573
+
574
+ setTimeout(() => { customStylingContainer.appendChild(cssFile); }, 1);
575
+ });
576
+ }
577
+ }
578
+
581
579
  onMount(() => {
582
580
  window.addEventListener('resize', resizeHandler, false);
583
581
  window.addEventListener('message', messageHandler, false);