Improve handling of JVM arguments on the settings view.

This commit is contained in:
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

View File

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