mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 03:32:12 -08:00
Improve handling of JVM arguments on the settings view.
This commit is contained in:
parent
4e2c9ce3ec
commit
ee61ea4979
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user