@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-game-page",
3
- "version": "0.0.95",
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": "c914b1873e8355d7b4604b3321bed9a223b0386f"
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
- isLoggedIn = true;
328
- sessionID = session;
329
- playerID = userid;
330
- if(endpoint) {
331
- checkSession(endpoint, session).then((res:any) => {
332
- sessionID = res.data.Guid;
333
- playerID = res.data.UserID;
334
- isLoggedIn = true;
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 = () => {