@everymatrix/general-player-register-form 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/general-player-register-form",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.399",
|
|
4
4
|
"main": "dist/general-player-register-form.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": "
|
|
39
|
+
"gitHead": "863d8e5a7c2dbb42ec688b5c165c7cc727b86a42"
|
|
40
40
|
}
|
|
@@ -111,7 +111,17 @@
|
|
|
111
111
|
const getCmsData = ():void => {
|
|
112
112
|
let url:URL = new URL(`${cmsendpoint}/${lang}/login-register-content?env=${env}`);
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
let device = getDevice(userAgent)
|
|
115
|
+
|
|
116
|
+
if(device){
|
|
117
|
+
if(device === 'PC'){
|
|
118
|
+
url.searchParams.append('device', 'dk')
|
|
119
|
+
} else if(device === 'iPad' || device === 'iPhone') {
|
|
120
|
+
url.searchParams.append('device', 'ios')
|
|
121
|
+
} else {
|
|
122
|
+
url.searchParams.append('device', 'mtWeb')
|
|
123
|
+
}
|
|
124
|
+
}
|
|
115
125
|
|
|
116
126
|
fetch(url.href)
|
|
117
127
|
.then((res: any) => res.json())
|