Переглянути джерело

fix(ToolbarButton): Don't register shortcut if APP is not defined.

master
hristoterezov 8 роки тому
джерело
коміт
f18b42b286

+ 1
- 1
react/features/toolbox/components/ToolbarButton.web.js Переглянути файл

@@ -227,7 +227,7 @@ class ToolbarButton extends AbstractToolbarButton {
227 227
                 }
228 228
             }
229 229
 
230
-            if (button.shortcut) {
230
+            if (button.shortcut && APP && APP.keyboardshortcut) {
231 231
                 APP.keyboardshortcut.registerShortcut(
232 232
                     button.shortcut,
233 233
                     button.shortcutAttr,

Завантаження…
Відмінити
Зберегти