@everymatrix/casino-game-page 0.0.269 → 0.0.270
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-game-page",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.270",
|
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": "
|
39
|
+
"gitHead": "bcb45adcfc2491881a3333ea2b75a5724d94c34a"
|
40
40
|
}
|
@@ -33,6 +33,7 @@
|
|
33
33
|
export let clockformat:string = '';
|
34
34
|
export let haspanicbutton:string = 'false';
|
35
35
|
export let playforfun:string = 'true';
|
36
|
+
export let checksession:string = 'true';
|
36
37
|
|
37
38
|
export let gameid:string = '';
|
38
39
|
|
@@ -391,14 +392,19 @@
|
|
391
392
|
}
|
392
393
|
|
393
394
|
const setSession = ():void => {
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
395
|
+
if (checksession == 'true') {
|
396
|
+
checkSession(endpoint, session).then((res:any) => {
|
397
|
+
sessionID = res.Guid;
|
398
|
+
playerID = res.UserID;
|
399
|
+
isLoggedIn = true;
|
400
|
+
}, (err:any) => {
|
401
|
+
isLoggedIn = false;
|
402
|
+
console.error('err on session', err);
|
403
|
+
});
|
404
|
+
} else {
|
405
|
+
sessionID = session;
|
406
|
+
playerID = userid;
|
407
|
+
}
|
402
408
|
}
|
403
409
|
|
404
410
|
const setClientStyling = ():void => {
|