Fix saving browser open setting

This commit is contained in:
shortcutme 2018-07-21 04:24:35 +02:00
parent a357b021ba
commit debe9959e4
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -1335,7 +1335,7 @@
};
ConfigStorage.prototype.deformatValue = function(value, type) {
if (type === "object") {
if (type === "object" && typeof value === "string") {
return value.split("\n");
}
if (type === "boolean" && !value) {