Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(notify-button-clicked) Fix crash on mobile browsers

hmuresan98b05a252989
diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js
index 0928bc7899..b3c5c4d183 100644
--- a/react/features/toolbox/components/web/Toolbox.js
+++ b/react/features/toolbox/components/web/Toolbox.js
@@ -820,7 +820,10 @@ class Toolbox extends Component<Props> {
}
Object.values(buttons).forEach((button: any) => {
- if (this.props._buttonsWithNotifyClick.includes(button.key)) {
+ if (
+ typeof button === 'object'
+ && this.props._buttonsWithNotifyClick.includes(button.key)
+ ) {
button.handleClick = () => APP.API.notifyToolbarButtonClicked(button.key);
}
});