瀏覽代碼

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

master
hristoterezov 7 年之前
父節點
當前提交
f18b42b286
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      react/features/toolbox/components/ToolbarButton.web.js

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

Loading…
取消
儲存