@everymatrix/casino-game-page 0.0.95 → 0.0.96
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/dist/casino-game-page.js +118 -123
- package/dist/casino-game-page.js.map +1 -1
- package/package.json +2 -2
- package/src/CasinoGamePage.svelte +10 -13
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.96",
|
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": "a5b786cbdb55417fffbe2510fa634b4633cd1eb4"
|
40
40
|
}
|
@@ -59,6 +59,8 @@
|
|
59
59
|
const formatGameLaunchUrl = (game:any) => {
|
60
60
|
let url:any = new URL(game.launchUrl);
|
61
61
|
|
62
|
+
url.searchParams.append('language', lang);
|
63
|
+
|
62
64
|
// Maybe we should check if the session is valid, somehow?
|
63
65
|
if (sessionID && sessionID.length > 0) {
|
64
66
|
isLoggedIn = true;
|
@@ -324,19 +326,14 @@
|
|
324
326
|
}
|
325
327
|
|
326
328
|
const setSession = () => {
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
}, (err:any) => {
|
336
|
-
isLoggedIn = false;
|
337
|
-
console.error('err on session', err);
|
338
|
-
});
|
339
|
-
}
|
329
|
+
checkSession(endpoint, session).then((res:any) => {
|
330
|
+
sessionID = res.Guid;
|
331
|
+
playerID = res.UserID;
|
332
|
+
isLoggedIn = true;
|
333
|
+
}, (err:any) => {
|
334
|
+
isLoggedIn = false;
|
335
|
+
console.error('err on session', err);
|
336
|
+
});
|
340
337
|
}
|
341
338
|
|
342
339
|
const setClientStyling = () => {
|