From 9d9b3a77492b0a72d8328a7879b1780e925e6c2a Mon Sep 17 00:00:00 2001 From: dannyrb Date: Sat, 8 Jun 2019 15:26:11 -0400 Subject: [PATCH] Make sure our app doesn't blow up if hotkeys aren't provided --- src/App.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index f99be84fe..3c2a90e37 100644 --- a/src/App.js +++ b/src/App.js @@ -42,7 +42,9 @@ const hotkeysManager = new HotkeysManager(commandsManager); // TODO: Should be done in extensions w/ commandsModule // ~~ ADD COMMANDS 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 store.dispatch({