Fix change detection for textareas in Config page

This commit is contained in:
shortcutme 2019-01-29 02:54:30 +01:00
parent ef0c0b1e32
commit e79e60f0bb
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 10 additions and 4 deletions

View file

@ -26,7 +26,10 @@ class ConfigStorage extends Class
deformatValue: (value, type) ->
if type == "object" and typeof(value) == "string"
return value.split("\n")
if not value.length
return value = null
else
return value.split("\n")
if type == "boolean" and not value
return false
else