[mirotalksfu] - add check for brand
هذا الالتزام موجود في:
@@ -55,7 +55,7 @@ dev dependencies: {
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.7.13
|
||||
* @version 1.7.14
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mirotalksfu",
|
||||
"version": "1.7.13",
|
||||
"version": "1.7.14",
|
||||
"description": "WebRTC SFU browser-based video calls",
|
||||
"main": "Server.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -143,70 +143,70 @@ function elementDisplay(element, display, mode = 'block') {
|
||||
|
||||
// APP customize
|
||||
function customizeApp() {
|
||||
if (appTitle) {
|
||||
appTitle.innerHTML = BRAND.app.title;
|
||||
if (appTitle && BRAND.app?.title) {
|
||||
appTitle.innerHTML = BRAND.app?.title;
|
||||
}
|
||||
if (appDescription) {
|
||||
if (appDescription && BRAND.app?.description) {
|
||||
appDescription.textContent = BRAND.app.description;
|
||||
}
|
||||
if (joinDescription) {
|
||||
if (joinDescription && BRAND.app?.joinDescription) {
|
||||
joinDescription.innerHTML = BRAND.app.joinDescription;
|
||||
}
|
||||
if (joinRoomButton) {
|
||||
if (joinRoomButton && BRAND.app?.joinButtonLabel) {
|
||||
joinRoomButton.innerText = BRAND.app.joinButtonLabel; // Common.js
|
||||
}
|
||||
if (joinLastLabel) {
|
||||
if (joinLastLabel && BRAND.app?.joinLastLabel) {
|
||||
joinLastLabel.innerText = BRAND.app.joinLastLabel;
|
||||
}
|
||||
}
|
||||
|
||||
// SITE metadata
|
||||
function customizeSite() {
|
||||
if (title) {
|
||||
title.textContent = BRAND.site.title;
|
||||
if (title && BRAND.site?.title) {
|
||||
title.textContent = BRAND.site?.title;
|
||||
}
|
||||
if (icon) {
|
||||
icon.href = BRAND.site.icon;
|
||||
if (icon && BRAND.site?.icon) {
|
||||
icon.href = BRAND.site?.icon;
|
||||
}
|
||||
if (appleTouchIcon) {
|
||||
if (appleTouchIcon && BRAND.site?.appleTouchIcon) {
|
||||
appleTouchIcon.href = BRAND.site.appleTouchIcon;
|
||||
}
|
||||
if (newRoomTitle) {
|
||||
newRoomTitle.innerHTML = BRAND.site.newRoomTitle;
|
||||
if (newRoomTitle && BRAND.site?.newRoomTitle) {
|
||||
newRoomTitle.innerHTML = BRAND.site?.newRoomTitle;
|
||||
}
|
||||
if (newRoomDescription) {
|
||||
if (newRoomDescription && BRAND.site?.newRoomDescription) {
|
||||
newRoomDescription.textContent = BRAND.site.newRoomDescription;
|
||||
}
|
||||
}
|
||||
|
||||
// SEO metadata
|
||||
function customizeMetaTags() {
|
||||
if (description) {
|
||||
if (description && BRAND.meta?.description) {
|
||||
description.content = BRAND.meta.description;
|
||||
}
|
||||
if (keywords) {
|
||||
if (keywords && BRAND.meta?.keywords) {
|
||||
keywords.content = BRAND.meta.keywords;
|
||||
}
|
||||
}
|
||||
|
||||
// SOCIAL MEDIA SHARING metadata
|
||||
function customizeOpenGraph() {
|
||||
if (ogType) {
|
||||
if (ogType && BRAND.og?.type) {
|
||||
ogType.content = BRAND.og.type;
|
||||
}
|
||||
if (ogSiteName) {
|
||||
if (ogSiteName && BRAND.og?.siteName) {
|
||||
ogSiteName.content = BRAND.og.siteName;
|
||||
}
|
||||
if (ogTitle) {
|
||||
if (ogTitle && BRAND.og?.title) {
|
||||
ogTitle.content = BRAND.og.title;
|
||||
}
|
||||
if (ogDescription) {
|
||||
if (ogDescription && BRAND.og?.description) {
|
||||
ogDescription.content = BRAND.og.description;
|
||||
}
|
||||
if (ogImage) {
|
||||
if (ogImage && BRAND.og?.image) {
|
||||
ogImage.content = BRAND.og.image;
|
||||
}
|
||||
if (ogUrl) {
|
||||
if (ogUrl && BRAND.og?.url) {
|
||||
ogUrl.content = BRAND.og.url;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.7.13
|
||||
* @version 1.7.14
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -1104,7 +1104,7 @@ async function whoAreYou() {
|
||||
allowOutsideClick: false,
|
||||
allowEscapeKey: false,
|
||||
background: swalBackground,
|
||||
title: BRAND.app.name,
|
||||
title: BRAND.app?.name,
|
||||
input: 'text',
|
||||
inputPlaceholder: 'Enter your email or name',
|
||||
inputAttributes: { maxlength: 32, id: 'usernameInput' },
|
||||
@@ -4904,7 +4904,7 @@ function showAbout() {
|
||||
imageUrl: image.about,
|
||||
customClass: { image: 'img-about' },
|
||||
position: 'center',
|
||||
title: 'WebRTC SFU v1.7.13',
|
||||
title: 'WebRTC SFU v1.7.14',
|
||||
html: `
|
||||
<br />
|
||||
<div id="about">
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.7.13
|
||||
* @version 1.7.14
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم