Browse Source

Improve handling of JVM arguments on the settings view.

Daniel Scalzi 3 years ago
parent
commit
ee61ea4979
1 changed files with 5 additions and 1 deletions
  1. 5 1
      app/assets/js/scripts/settings.js

+ 5 - 1
app/assets/js/scripts/settings.js

@@ -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)
                     }