@everymatrix/casino-lobby 1.33.5 → 1.34.1
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-lobby.js +6 -6
- package/dist/casino-lobby.js.map +1 -1
- package/index.html +3 -0
- package/package.json +2 -2
- package/src/CasinoLobby.svelte +3 -10
- package/yarn-error.log +0 -12284
package/index.html
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-lobby",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.1",
|
|
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": "5ce0bbd8d4005bb9f6fbed830e8882a14e79712a"
|
|
39
39
|
}
|
package/src/CasinoLobby.svelte
CHANGED
|
@@ -161,16 +161,15 @@
|
|
|
161
161
|
sessionID = e.data.session;
|
|
162
162
|
playerID = e.data.userID;
|
|
163
163
|
break;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
window.postMessage({type: 'GetFavoredGame'}, window.location.href);
|
|
164
|
+
|
|
165
|
+
case 'CategoryChange':
|
|
167
166
|
activecategory = e.data.itemId;
|
|
168
167
|
break;
|
|
169
168
|
}
|
|
170
169
|
}
|
|
171
170
|
}
|
|
172
171
|
|
|
173
|
-
|
|
172
|
+
const checkAttrs = ():boolean => {
|
|
174
173
|
if (!endpoint) {
|
|
175
174
|
error = "Endpoint is missing! Please provide a valid endpointURL.";
|
|
176
175
|
hasErrors = true;
|
|
@@ -258,18 +257,12 @@
|
|
|
258
257
|
|
|
259
258
|
|
|
260
259
|
onMount(() => {
|
|
261
|
-
window.addEventListener('popstate', (_) => {
|
|
262
|
-
window.postMessage({type: 'GetFavoredGame'}, window.location.href);
|
|
263
|
-
});
|
|
264
260
|
window.addEventListener('message', messageHandler, false);
|
|
265
261
|
|
|
266
262
|
headerPlaceholderSize = (getDevice(userAgent) === 'PC') ? parseInt(desktopoffset) : parseInt(mobileoffset);
|
|
267
263
|
|
|
268
264
|
return () => {
|
|
269
265
|
window.removeEventListener('message', messageHandler);
|
|
270
|
-
window.removeEventListener('popstate', (_) => {
|
|
271
|
-
window.postMessage({type: 'GetFavoredGame'}, window.location.href);
|
|
272
|
-
});
|
|
273
266
|
}
|
|
274
267
|
});
|
|
275
268
|
|