mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-27 18:55:58 +03:00
don't crash if no global spawn hotkey is assigned (#540)
This commit is contained in:
parent
216f5c2213
commit
9440d687d3
@ -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]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user