Improve handling of JVM arguments on the settings view.

pull/226/head
Daniel Scalzi 2022-04-03 17:32:59 -04:00
parent 4e2c9ce3ec
commit ee61ea4979
No known key found for this signature in database
GPG Key ID: 9E3E2AFE45328AA5
1 changed files with 5 additions and 1 deletions

View File

@ -180,7 +180,11 @@ function saveSettingsValues(){
if(v.type === 'number' || v.type === 'text'){
// Special Conditions
if(cVal === 'JVMOptions'){
sFn(v.value.split(' '))
if(!v.value.trim()) {
sFn([])
} else {
sFn(v.value.trim().split(/\s+/))
}
} else {
sFn(v.value)
}