@everymatrix/casino-game-page 1.2.1 → 1.2.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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@everymatrix/casino-game-page",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.2",
|
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": "02dbae5b4d167acdb57c72905b756343a318870a"
|
40
40
|
}
|
@@ -21,7 +21,7 @@
|
|
21
21
|
export let userid:string = ''; // Value for UserID;
|
22
22
|
export let clientstyling:string = '';
|
23
23
|
export let clientstylingurl:string = '';
|
24
|
-
export let
|
24
|
+
export let translationurl:string = '';
|
25
25
|
export let favorites:string = '';
|
26
26
|
|
27
27
|
export let loginurl:string = '';
|
@@ -85,7 +85,7 @@
|
|
85
85
|
setupI18n({ withLocale: 'en', translations: {}});
|
86
86
|
|
87
87
|
const setTranslationUrl = ():void => {
|
88
|
-
let url:string =
|
88
|
+
let url:string = translationurl;
|
89
89
|
|
90
90
|
fetch(url).then((res:any) => res.json())
|
91
91
|
.then((res) => {
|
@@ -594,7 +594,7 @@
|
|
594
594
|
$: endpoint && gameid && lang && createGameURL(gameid, true);
|
595
595
|
$: session && userid && endpoint && setSession();
|
596
596
|
$: checksession == 'false' && session && endpoint && setSession();
|
597
|
-
$:
|
597
|
+
$: translationurl && setTranslationUrl();
|
598
598
|
$: clientstyling && customStylingContainer && setClientStyling();
|
599
599
|
$: clientstylingurl && customStylingContainer && setClientStylingURL();
|
600
600
|
$: (showModal == 'true') && panicButton && addEventsToDisplayedElements();
|
@@ -608,7 +608,7 @@
|
|
608
608
|
{#if hasErrors}
|
609
609
|
<p class="SearchLoading" part="SearchLoading">500 Error - Internal Server Error.</p>
|
610
610
|
{:else}
|
611
|
-
<div class="GamePageBackground" style="background:{!
|
611
|
+
<div class="GamePageBackground" style="background:{!isMobile(userAgent)? `url(${game.backgroundImageUrl})`: ''}; background-size: cover" bind:this={gamePageBackground}>
|
612
612
|
<div class="CasinoGamePageContainer" part="CasinoGamePageContainer" style="background: rgba(0, 0, 0, 0.5)">
|
613
613
|
{#if detailsObtained}
|
614
614
|
{#if mobileView}
|