Fix saving browser open setting
This commit is contained in:
parent
a357b021ba
commit
debe9959e4
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ class ConfigStorage extends Class
|
||||||
return value
|
return value
|
||||||
|
|
||||||
deformatValue: (value, type) ->
|
deformatValue: (value, type) ->
|
||||||
if type == "object"
|
if type == "object" and typeof(value) == "string"
|
||||||
return value.split("\n")
|
return value.split("\n")
|
||||||
if type == "boolean" and not value
|
if type == "boolean" and not value
|
||||||
return false
|
return false
|
||||||
|
|
|
@ -1335,7 +1335,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
ConfigStorage.prototype.deformatValue = function(value, type) {
|
ConfigStorage.prototype.deformatValue = function(value, type) {
|
||||||
if (type === "object") {
|
if (type === "object" && typeof value === "string") {
|
||||||
return value.split("\n");
|
return value.split("\n");
|
||||||
}
|
}
|
||||||
if (type === "boolean" && !value) {
|
if (type === "boolean" && !value) {
|
||||||
|
|
Loading…
Reference in a new issue