Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Fixes issue of method 'setTooltip'
coresh6bd5d6e4d50a
diff --git a/modules/UI/util/UIUtil.js b/modules/UI/util/UIUtil.jsindex 5644833555..daa1b35703 100644--- a/modules/UI/util/UIUtil.js+++ b/modules/UI/util/UIUtil.js@@ -131,10 +131,12 @@ const TOOLTIP_POSITIONS = {* @param position the position of the tooltip in relation to the element*/setTooltip: function (element, key, position) {- element.setAttribute('data-tooltip', TOOLTIP_POSITIONS[position]);- element.setAttribute('data-i18n', '[content]' + key);+ if (element !== null) {+ element.setAttribute('data-tooltip', TOOLTIP_POSITIONS[position]);+ element.setAttribute('data-i18n', '[content]' + key);- APP.translation.translateElement($(element));+ APP.translation.translateElement($(element));+ }},/**