浏览代码

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

master
hristoterezov 8 年前
父节点
当前提交
f18b42b286
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      react/features/toolbox/components/ToolbarButton.web.js

+ 1
- 1
react/features/toolbox/components/ToolbarButton.web.js 查看文件

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,

正在加载...
取消
保存