add guard before APP in middleware.js
This commit is contained in:
parent
5a051024e6
commit
0410af9e5e
|
@ -64,10 +64,11 @@ isFeatureEnabled
|
|||
}, 10000));
|
||||
};
|
||||
|
||||
APP.keyboardshortcut.registerShortcut('L', null, () => {
|
||||
sendAnalytics(createShortcutEvent('local.recording'));
|
||||
dispatch(toggleDialog(LocalRecordingInfoDialog));
|
||||
}, 'keyboardShortcuts.localRecording');
|
||||
typeof APP === 'object' && typeof APP.keyboardshortcut === 'object'
|
||||
&& APP.keyboardshortcut.registerShortcut('L', null, () => {
|
||||
sendAnalytics(createShortcutEvent('local.recording'));
|
||||
dispatch(toggleDialog(LocalRecordingInfoDialog));
|
||||
}, 'keyboardShortcuts.localRecording');
|
||||
break;
|
||||
case APP_WILL_UNMOUNT:
|
||||
recordingController.onStateChanged = null;
|
||||
|
|
Loading…
Reference in New Issue