From f7e1270827d0d153783a4844205ae5ee2f5b322a Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Mon, 29 Jul 2024 14:05:02 +0200 Subject: [PATCH] [mirotalkc2c] - fix translate --- backend/server.js | 2 +- frontend/js/client.js | 2 +- frontend/js/translate.js | 8 ++++---- package.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/server.js b/backend/server.js index 4f77f00..378a988 100644 --- a/backend/server.js +++ b/backend/server.js @@ -9,7 +9,7 @@ * @license For private project or commercial purposes contact us at: license.mirotalk@gmail.com or purchase it directly via Code Canyon: * @license https://codecanyon.net/item/mirotalk-c2c-webrtc-real-time-cam-2-cam-video-conferences-and-screen-sharing/43383005 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.1.22 + * @version 1.1.23 */ require('dotenv').config(); diff --git a/frontend/js/client.js b/frontend/js/client.js index a9bcaab..2a424bd 100644 --- a/frontend/js/client.js +++ b/frontend/js/client.js @@ -9,7 +9,7 @@ * @license For private project or commercial purposes contact us at: license.mirotalk@gmail.com or purchase it directly via Code Canyon: * @license https://codecanyon.net/item/mirotalk-c2c-webrtc-real-time-cam-2-cam-video-conferences-and-screen-sharing/43383005 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.1.22 + * @version 1.1.23 */ const roomId = new URLSearchParams(window.location.search).get('room'); diff --git a/frontend/js/translate.js b/frontend/js/translate.js index e7fbbf3..a213931 100644 --- a/frontend/js/translate.js +++ b/frontend/js/translate.js @@ -1,9 +1,9 @@ 'use strict'; -const script = document.createElement('script'); -script.setAttribute('async', ''); -script.setAttribute('src', 'https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit'); -document.head.appendChild(script); +const trScript = document.createElement('script'); +trScript.setAttribute('async', ''); +trScript.setAttribute('src', 'https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit'); +document.head.appendChild(trScript); function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en' }, 'google_translate_element'); diff --git a/package.json b/package.json index 5c0c982..c6c6415 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalkc2c", - "version": "1.1.22", + "version": "1.1.23", "description": "A free WebRTC Cam-2-Cam browser-based video calls", "main": "server.js", "scripts": {