@everymatrix/casino-footer-v2 1.8.4 → 1.9.1

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-footer-v2",
3
- "version": "1.8.4",
3
+ "version": "1.9.1",
4
4
  "main": "dist/casino-footer-v2.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": "58b0374c9527cbfb3a070ac6fb1744bc670aba27"
39
+ "gitHead": "b882819d6bf435954793bf62ec04879ecb8572e0"
40
40
  }
@@ -159,7 +159,7 @@
159
159
  if(device === 'PC'){
160
160
  url.searchParams.append('device', 'dk')
161
161
  } else if(device === 'iPad' || device === 'iPhone') {
162
- url.searchParams.append('device', 'ios')
162
+ url.searchParams.append('device', 'mtWeb'); // replace with ios when we will have a native ios up for this
163
163
  } else {
164
164
  url.searchParams.append('device', 'mtWeb')
165
165
  }
@@ -320,7 +320,10 @@
320
320
  fetch(url.href)
321
321
  .then((res:any) => res.text())
322
322
  .then((data:any) => {
323
- cssFile.innerHTML = data
323
+ cssFile.innerHTML = data;
324
+
325
+ // after the first call is made for the custom styling file, save the css inside clientstyling in order to avoid multiple fetches inside subwidgets
326
+ clientstyling = clientstyling ? clientstyling + data : data;
324
327
 
325
328
  setTimeout(() => { customStylingContainer.appendChild(cssFile) }, 1);
326
329
  });
@@ -376,7 +379,6 @@
376
379
  <casino-footer-section
377
380
  helperflag="1"
378
381
  {clientstyling}
379
- {clientstylingurl}
380
382
  category={category.key}
381
383
  displaycolumn="true"
382
384
  {baseurl}
@@ -398,7 +400,6 @@
398
400
  <casino-footer-section
399
401
  vendorflag="1"
400
402
  {clientstyling}
401
- {clientstylingurl}
402
403
  {baseurl}
403
404
  {lang}
404
405
  footertype="footersecondary">
@@ -417,7 +418,6 @@
417
418
  <casino-footer-section
418
419
  paymentflag="1"
419
420
  {clientstyling}
420
- {clientstylingurl}
421
421
  {baseurl}
422
422
  {lang}
423
423
  footertype="footersecondary">
@@ -434,7 +434,6 @@
434
434
  alternativestyling="true"
435
435
  {lang}
436
436
  {clientstyling}
437
- {clientstylingurl}
438
437
  ></panic-button>
439
438
  {/if}
440
439
  <!-- end panic button -->
@@ -448,7 +447,6 @@
448
447
  <casino-footer-section
449
448
  licenseFlag="1"
450
449
  {clientstyling}
451
- {clientstylingurl}
452
450
  {baseurl}
453
451
  {lang}
454
452
  footertype="footersecondary">
@@ -477,7 +475,6 @@
477
475
  <casino-footer-section
478
476
  sponsorflag="1"
479
477
  {clientstyling}
480
- {clientstylingurl}
481
478
  {baseurl}
482
479
  {lang}
483
480
  footertype="footersecondary">
@@ -497,7 +494,6 @@
497
494
  <casino-footer-section
498
495
  socialflag="1"
499
496
  {clientstyling}
500
- {clientstylingurl}
501
497
  {baseurl}
502
498
  {lang}
503
499
  footertype="footersecondary">