don't crash if no global spawn hotkey is assigned (#540)

This commit is contained in:
Eugene Pankov 2018-12-07 14:50:26 +01:00
parent 216f5c2213
commit 9440d687d3

View File

@ -86,7 +86,7 @@ export class HotkeysService {
registerGlobalHotkey () {
this.electron.globalShortcut.unregisterAll()
let value = this.config.store.hotkeys['toggle-window']
let value = this.config.store.hotkeys['toggle-window'] || []
if (typeof value === 'string') {
value = [value]
}