mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Fix #321
This commit is contained in:
parent
e122caa326
commit
1bf859bb01
1 changed files with 1 additions and 1 deletions
|
@ -1381,7 +1381,7 @@ export function set(key: string, ...values: string[]) {
|
|||
|
||||
if (Array.isArray(currentValue)) {
|
||||
config.set(...target, values)
|
||||
} else if (typeof currentValue === "string") {
|
||||
} else if (currentValue === undefined || typeof currentValue === "string") {
|
||||
config.set(...target, values.join(' '))
|
||||
} else {
|
||||
throw "Unsupported setting type!"
|
||||
|
|
Loading…
Add table
Reference in a new issue