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(ToolbarButton): Don't register shortcut if APP is not defined.

hristoterezovf18b42b286b4
diff --git a/react/features/toolbox/components/ToolbarButton.web.js b/react/features/toolbox/components/ToolbarButton.web.js
index ec92cf162e..8922ea9e14 100644
--- a/react/features/toolbox/components/ToolbarButton.web.js
+++ b/react/features/toolbox/components/ToolbarButton.web.js
@@ -227,7 +227,7 @@ class ToolbarButton extends AbstractToolbarButton {
}
}
- if (button.shortcut) {
+ if (button.shortcut && APP && APP.keyboardshortcut) {
APP.keyboardshortcut.registerShortcut(
button.shortcut,
button.shortcutAttr,