Explorar el Código

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

master
hristoterezov hace 7 años
padre
commit
f18b42b286
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      react/features/toolbox/components/ToolbarButton.web.js

+ 1
- 1
react/features/toolbox/components/ToolbarButton.web.js Ver fichero

@@ -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,

Loading…
Cancelar
Guardar