Selaa lähdekoodia

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

master
hristoterezov 7 vuotta sitten
vanhempi
commit
f18b42b286
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      react/features/toolbox/components/ToolbarButton.web.js

+ 1
- 1
react/features/toolbox/components/ToolbarButton.web.js Näytä tiedosto

227
                 }
227
                 }
228
             }
228
             }
229
 
229
 
230
-            if (button.shortcut) {
230
+            if (button.shortcut && APP && APP.keyboardshortcut) {
231
                 APP.keyboardshortcut.registerShortcut(
231
                 APP.keyboardshortcut.registerShortcut(
232
                     button.shortcut,
232
                     button.shortcut,
233
                     button.shortcutAttr,
233
                     button.shortcutAttr,

Loading…
Peruuta
Tallenna