mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix(settings): prevent shortcut error when it's not set
This commit is contained in:
parent
9511e8bf29
commit
3f5845cf8d
1 changed files with 1 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ function detectOS() {
|
|||
}
|
||||
|
||||
function friendlyFormatShortcut(shortcut) {
|
||||
if (!shortcut) return
|
||||
const OS = detectOS()
|
||||
if (OS === OperatingSystems.Windows) {
|
||||
return shortcut.replace(/meta/, 'win')
|
||||
|
|
|
|||
Loading…
Reference in a new issue