@everymatrix/casino-game-thumbnail 0.0.85 → 0.0.89

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-thumbnail",
3
- "version": "0.0.85",
3
+ "version": "0.0.89",
4
4
  "main": "dist/casino-game-thumbnail.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": "0bc40bb46f60b893686f87733a429a255bcfe0da"
39
+ "gitHead": "2774492a8f6a3830a3ce6b7f91b1030b7f4a4ea7"
40
40
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  <script lang="typescript">
4
4
  import { onMount } from "svelte";
5
- import { isMobile } from 'rvhelper';
5
+ import { isMobile, checkSession } from 'rvhelper';
6
6
  import { _, addNewMessages } from './i18n';
7
7
  import { GameThumbnailTranslations } from './translations';
8
8
 
@@ -24,6 +24,7 @@
24
24
  export let gamefavorite:Boolean = false;
25
25
  export let showfavoredcategory:Boolean = false;
26
26
  export let showgamename:Boolean = false;
27
+ export let endpoint:String = '';
27
28
 
28
29
  let isLoggedIn:Boolean = false;
29
30
  let sessionID:String;
@@ -111,6 +112,16 @@
111
112
  isLoggedIn = true;
112
113
  sessionID = session;
113
114
  playerID = userid;
115
+ if(endpoint) {
116
+ checkSession(endpoint, session).then((res:any) => {
117
+ sessionID = res.data.Guid;
118
+ playerID = res.data.UserID;
119
+ isLoggedIn = true;
120
+ }, (err:any) => {
121
+ isLoggedIn = false;
122
+ console.error('err on session', err);
123
+ });
124
+ }
114
125
  }
115
126
 
116
127
  const setOnLoad = () => {
@@ -146,7 +157,7 @@
146
157
  cssFile.innerHTML = data
147
158
 
148
159
  if (customStylingContainer) {
149
- customStylingContainer.appendChild(cssFile);
160
+ setTimeout(() => { customStylingContainer.appendChild(cssFile); });
150
161
  }
151
162
  });
152
163
  }
@@ -161,7 +172,7 @@
161
172
  });
162
173
 
163
174
  $: lang && initialSetup();
164
- $: session && userid && setSession();
175
+ $: session && userid && endpoint && setSession();
165
176
  $: gamethumbnail && setOnLoad();
166
177
  $: clientstyling && setClientStyling();
167
178
  $: favorites && setFavorites();