@everymatrix/casino-header-controller 0.0.268 → 0.0.271
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-header-controller",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.271",
|
|
4
4
|
"main": "dist/casino-header-controller.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "656de48b1f32eaa465896b097c02035605903871"
|
|
42
42
|
}
|
|
@@ -169,7 +169,10 @@
|
|
|
169
169
|
createCMSUrls();
|
|
170
170
|
|
|
171
171
|
getLogo(logoURL);
|
|
172
|
-
getHeaderMenusData
|
|
172
|
+
// getHeaderMenusData need to execute after the initialLoad receives the current lang value
|
|
173
|
+
setTimeout(() => {
|
|
174
|
+
getHeaderMenusData(headerURL);
|
|
175
|
+
})
|
|
173
176
|
}
|
|
174
177
|
|
|
175
178
|
const setActiveIndex = ():void => {
|
|
@@ -210,8 +213,12 @@
|
|
|
210
213
|
fetch(url)
|
|
211
214
|
.then((res: any) => res.json())
|
|
212
215
|
.then((data: any) => {
|
|
213
|
-
|
|
214
|
-
|
|
216
|
+
if (data.logoUrl.length > 0 && (data.logoUrl != "null" || data.logoUrl != "false")) {
|
|
217
|
+
logoPath = data.logoUrl;
|
|
218
|
+
logoFromCms = true;
|
|
219
|
+
} else {
|
|
220
|
+
logoFromCms = false;
|
|
221
|
+
}
|
|
215
222
|
resolve(data);
|
|
216
223
|
}, (err: any) => {
|
|
217
224
|
logoFromCms = false;
|