@everymatrix/casino-lobby 1.34.0 → 1.34.2
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/CHANGELOG.md +1 -0
- package/dist/casino-lobby.js +9 -9
- package/dist/casino-lobby.js.map +1 -1
- package/index.html +3 -0
- package/package.json +2 -2
- package/src/CasinoLobby.svelte +3 -13
- package/yarn-error.log +12643 -0
package/index.html
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-lobby",
|
|
3
|
-
"version": "1.34.
|
|
3
|
+
"version": "1.34.2",
|
|
4
4
|
"main": "dist/casino-lobby.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "99004a0501ea8fb9219aac803a986e470f556838"
|
|
39
39
|
}
|
package/src/CasinoLobby.svelte
CHANGED
|
@@ -27,9 +27,6 @@
|
|
|
27
27
|
export let userroles: string = '';
|
|
28
28
|
export let translationurl:string = '';
|
|
29
29
|
|
|
30
|
-
export let loginurl:string = '';
|
|
31
|
-
export let registerurl:string = '';
|
|
32
|
-
export let depositurl:string = '';
|
|
33
30
|
export let loginevent:string = '';
|
|
34
31
|
export let registerevent:string = '';
|
|
35
32
|
export let depositevent:string = '';
|
|
@@ -161,16 +158,15 @@
|
|
|
161
158
|
sessionID = e.data.session;
|
|
162
159
|
playerID = e.data.userID;
|
|
163
160
|
break;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
window.postMessage({type: 'GetFavoredGame'}, window.location.href);
|
|
161
|
+
|
|
162
|
+
case 'CategoryChange':
|
|
167
163
|
activecategory = e.data.itemId;
|
|
168
164
|
break;
|
|
169
165
|
}
|
|
170
166
|
}
|
|
171
167
|
}
|
|
172
168
|
|
|
173
|
-
|
|
169
|
+
const checkAttrs = ():boolean => {
|
|
174
170
|
if (!endpoint) {
|
|
175
171
|
error = "Endpoint is missing! Please provide a valid endpointURL.";
|
|
176
172
|
hasErrors = true;
|
|
@@ -258,18 +254,12 @@
|
|
|
258
254
|
|
|
259
255
|
|
|
260
256
|
onMount(() => {
|
|
261
|
-
window.addEventListener('popstate', (_) => {
|
|
262
|
-
window.postMessage({type: 'GetFavoredGame'}, window.location.href);
|
|
263
|
-
});
|
|
264
257
|
window.addEventListener('message', messageHandler, false);
|
|
265
258
|
|
|
266
259
|
headerPlaceholderSize = (getDevice(userAgent) === 'PC') ? parseInt(desktopoffset) : parseInt(mobileoffset);
|
|
267
260
|
|
|
268
261
|
return () => {
|
|
269
262
|
window.removeEventListener('message', messageHandler);
|
|
270
|
-
window.removeEventListener('popstate', (_) => {
|
|
271
|
-
window.postMessage({type: 'GetFavoredGame'}, window.location.href);
|
|
272
|
-
});
|
|
273
263
|
}
|
|
274
264
|
});
|
|
275
265
|
|