@everymatrix/casino-footer-v2 0.0.397 → 0.0.399

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": "0.0.397",
3
+ "version": "0.0.399",
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": "0a8bd4da61d95ed7aa871757ea16bcc1a10955ce"
39
+ "gitHead": "863d8e5a7c2dbb42ec688b5c165c7cc727b86a42"
40
40
  }
@@ -6,7 +6,7 @@
6
6
 
7
7
  import { onMount } from 'svelte';
8
8
  import moment from 'moment';
9
- import { checkSession, isMobile } from 'rvhelper';
9
+ import { checkSession, isMobile, getDevice } from 'rvhelper';
10
10
  import { _, addNewMessages, setLocale, setupI18n } from './i18n';
11
11
  import { CasinoFooterTranslations } from './translations.js'
12
12
 
@@ -137,9 +137,21 @@
137
137
 
138
138
  const getCmsData = ():void => {
139
139
  let url:URL = new URL(`${endpoint}/${lang}/footer-raw-data`);
140
-
140
+
141
141
  url.searchParams.append('env', env);
142
142
 
143
+ let device = getDevice(userAgent)
144
+
145
+ if(device){
146
+ if(device === 'PC'){
147
+ url.searchParams.append('device', 'dk')
148
+ } else if(device === 'iPad' || device === 'iPhone') {
149
+ url.searchParams.append('device', 'ios')
150
+ } else {
151
+ url.searchParams.append('device', 'mtWeb')
152
+ }
153
+ }
154
+
143
155
  if (grouplink == 'true') {
144
156
  url.searchParams.append('helpLinks_groupby', 'helpLinkCategory');
145
157
  }