[mirotalksfu] - add support us section

هذا الالتزام موجود في:
Miroslav Pejic
2025-11-10 19:45:06 +01:00
الأصل 8d23a5fd94
التزام dffc992f4b
7 ملفات معدلة مع 298 إضافات و26 حذوفات

عرض الملف

@@ -67,6 +67,7 @@ let BRAND = {
poweredBy: true,
sponsors: true,
advertisers: true,
supportUs: true,
footer: true,
},
whoAreYou: {
@@ -191,10 +192,21 @@ async function getBrand() {
// BRAND configurations
function setBrand(data) {
BRAND = data;
BRAND = mergeBrand(BRAND, data);
console.log('Set Brand done');
}
function mergeBrand(current, updated) {
for (const key of Object.keys(updated)) {
if (!current.hasOwnProperty(key) || typeof updated[key] !== 'object') {
current[key] = updated[key];
} else {
mergeBrand(current[key], updated[key]);
}
}
return current;
}
// BRAND check
function checkBrand() {
!BRAND.html.topSponsors && elementDisplay(topSponsors, false);
@@ -204,6 +216,7 @@ function checkBrand() {
!BRAND.html.poweredBy && elementDisplay(poweredBy, false);
!BRAND.html.sponsors && elementDisplay(sponsors, false);
!BRAND.html.advertisers && elementDisplay(advertisers, false);
!BRAND.html.supportUs && elementDisplay(supportUs, false);
!BRAND.html.footer && elementDisplay(footer, false);
}