@everymatrix/player-account-controller 0.0.398 → 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/index.html
CHANGED
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
<player-account-controller
|
|
35
35
|
endpoint="https://ngenge-com-api.stage.norway.everymatrix.com/v1"
|
|
36
36
|
cmsendpoint="https://ngenge-stage2.everymatrix.com/apijson"
|
|
37
|
-
playerid="
|
|
38
|
-
session="
|
|
37
|
+
playerid="3997218"
|
|
38
|
+
session="68334ed0-5227-4b89-92ef-284a2f537a23"
|
|
39
39
|
customnotifications="#58586B,#2687F6,#D0046C"
|
|
40
40
|
lang="en"
|
|
41
41
|
env="stage"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-account-controller",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.399",
|
|
4
4
|
"main": "dist/player-account-controller.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"typescript": "^3.9.3"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@everymatrix/player-account-menu": "^0.0.
|
|
33
|
-
"@everymatrix/player-account-notifications": "^0.0.
|
|
32
|
+
"@everymatrix/player-account-menu": "^0.0.399",
|
|
33
|
+
"@everymatrix/player-account-notifications": "^0.0.399",
|
|
34
34
|
"cross-env": "^7.0.3",
|
|
35
35
|
"sirv-cli": "^1.0.0",
|
|
36
36
|
"svelte": "^3.0.0"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "863d8e5a7c2dbb42ec688b5c165c7cc727b86a42"
|
|
42
42
|
}
|
|
@@ -89,9 +89,6 @@
|
|
|
89
89
|
'/withdrawal',
|
|
90
90
|
'/pending-withdrawals',
|
|
91
91
|
'/transaction-history'];
|
|
92
|
-
const accountMenuEndpointURL:string = `${cmsendpoint}/${lang}/profile-menu?env=${env}`;
|
|
93
|
-
const notificationsEndpointURL:string = `${cmsendpoint}/${lang}/support-information?env=${env}`;
|
|
94
|
-
|
|
95
92
|
let switchContent:boolean = false;
|
|
96
93
|
|
|
97
94
|
Object.keys(PlayerAccountControllerTranslations).forEach((item:any) => {
|
|
@@ -456,6 +453,18 @@
|
|
|
456
453
|
|
|
457
454
|
url.searchParams.append('userRoles', userroles);
|
|
458
455
|
|
|
456
|
+
let device = getDevice(userAgent)
|
|
457
|
+
|
|
458
|
+
if(device){
|
|
459
|
+
if(device === 'PC'){
|
|
460
|
+
url.searchParams.append('device', 'dk')
|
|
461
|
+
} else if(device === 'iPad' || device === 'iPhone') {
|
|
462
|
+
url.searchParams.append('device', 'ios')
|
|
463
|
+
} else {
|
|
464
|
+
url.searchParams.append('device', 'mtWeb')
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
459
468
|
fetch(url.href)
|
|
460
469
|
.then((res:any) => res.json())
|
|
461
470
|
.then((data:any):void => {
|