mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 11:42:14 -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'){
|
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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user