Skip to content

Commit

Permalink
[mirotalk] - add check for brand
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jan 27, 2025
1 parent 788ae98 commit 140988b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 24 deletions.
2 changes: 1 addition & 1 deletion app/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies: {
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.4.67
* @version 1.4.68
*
*/

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mirotalk",
"version": "1.4.67",
"version": "1.4.68",
"description": "A free WebRTC browser-based video call",
"main": "server.js",
"scripts": {
Expand Down
42 changes: 22 additions & 20 deletions public/js/brand.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,26 +123,28 @@ function setBrand(data) {
* Handle Brand
*/
function handleBrand() {
if (landingTitle) landingTitle.textContent = brand.site.landingTitle;

if (newCallTitle) newCallTitle.textContent = brand.site.newCallTitle;
if (newCallRoomTitle) newCallRoomTitle.innerHTML = brand.site.newCallRoomTitle;
if (newCallRoomDescription) newCallRoomDescription.textContent = brand.site.newCallRoomDescription;

if (loginTitle) loginTitle.textContent = brand.site.loginTitle;
if (privacyPolicyTitle) privacyPolicyTitle.textContent = brand.site.privacyPolicyTitle;
if (stunTurnTitle) stunTurnTitle.textContent = brand.site.stunTurnTitle;
if (clientTitle) clientTitle.textContent = brand.site.clientTitle;
if (notFoundTitle) notFoundTitle.textContent = brand.site.notFoundTitle;

if (shortcutIcon) shortcutIcon.href = brand.site.shortcutIcon;
if (appleTouchIcon) appleTouchIcon.href = brand.site.appleTouchIcon;

if (appTitle) appTitle.innerHTML = brand.app.title;
if (appDescription) appDescription.textContent = brand.app.description;
if (appJoinDescription) appJoinDescription.innerHTML = brand.app.joinDescription;
if (joinRoomButton) joinRoomButton.innerText = brand.app.joinButtonLabel; // common.js
if (appJoinLastRoom) appJoinLastRoom.innerText = brand.app.joinLastLabel;
if (landingTitle && brand.site?.landingTitle) landingTitle.textContent = brand.site.landingTitle;

if (newCallTitle && brand.site?.newCallTitle) newCallTitle.textContent = brand.site.newCallTitle;
if (newCallRoomTitle && brand.site?.newCallRoomTitle) newCallRoomTitle.innerHTML = brand.site.newCallRoomTitle;
if (newCallRoomDescription && brand.site?.newCallRoomDescription)
newCallRoomDescription.textContent = brand.site.newCallRoomDescription;

if (loginTitle && brand.site?.loginTitle) loginTitle.textContent = brand.site.loginTitle;
if (privacyPolicyTitle && brand.site?.privacyPolicyTitle)
privacyPolicyTitle.textContent = brand.site.privacyPolicyTitle;
if (stunTurnTitle && brand.site?.stunTurnTitle) stunTurnTitle.textContent = brand.site.stunTurnTitle;
if (clientTitle && brand.site?.clientTitle) clientTitle.textContent = brand.site.clientTitle;
if (notFoundTitle && brand.site?.notFoundTitle) notFoundTitle.textContent = brand.site.notFoundTitle;

if (shortcutIcon && brand.site?.shortcutIcon) shortcutIcon.href = brand.site.shortcutIcon;
if (appleTouchIcon && brand.site?.appleTouchIcon) appleTouchIcon.href = brand.site.appleTouchIcon;

if (appTitle && brand.app?.title) appTitle.innerHTML = brand.app.title;
if (appDescription && brand.app?.description) appDescription.textContent = brand.app.description;
if (appJoinDescription && brand.app?.joinDescription) appJoinDescription.innerHTML = brand.app.joinDescription;
if (joinRoomButton && brand.app?.joinButtonLabel) joinRoomButton.innerText = brand.app.joinButtonLabel; // common.js
if (appJoinLastRoom && brand.app?.joinLastLabel) appJoinLastRoom.innerText = brand.app.joinLastLabel;

!brand.html.features && elementDisplay(features, false);
!brand.html.browsers && elementDisplay(browsers, false);
Expand Down
4 changes: 2 additions & 2 deletions public/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.4.67
* @version 1.4.68
*
*/

Expand Down Expand Up @@ -11039,7 +11039,7 @@ function showAbout() {
Swal.fire({
background: swBg,
position: 'center',
title: '<strong>WebRTC P2P v1.4.67</strong>',
title: '<strong>WebRTC P2P v1.4.68</strong>',
imageAlt: 'mirotalk-about',
imageUrl: images.about,
customClass: { image: 'img-about' },
Expand Down

0 comments on commit 140988b

Please sign in to comment.