Make sure our app doesn't blow up if hotkeys aren't provided
This commit is contained in:
1 parent
78068bed4b
commit
9d9b3a7749
1 file changed
+3
-1
+3
-1
@@ -42,7 +42,9 @@ const hotkeysManager = new HotkeysManager(commandsManager);
|
|||||||
// TODO: Should be done in extensions w/ commandsModule
|
// TODO: Should be done in extensions w/ commandsModule
|
||||||
// ~~ ADD COMMANDS
|
// ~~ ADD COMMANDS
|
||||||
appCommands.init(commandsManager);
|
appCommands.init(commandsManager);
|
||||||
hotkeysManager.setHotkeys(window.config.hotkeys, true);
|
if (window.config.hotkeys) {
|
||||||
|
hotkeysManager.setHotkeys(window.config.hotkeys, true);
|
||||||
|
}
|
||||||
|
|
||||||
// Force active contexts for now. These should be set in Viewer/ActiveViewer
|
// Force active contexts for now. These should be set in Viewer/ActiveViewer
|
||||||
store.dispatch({
|
store.dispatch({
|
||||||
|
|||||||
Reference in new issue
Block a user