LSP: bugfix for empty config files
This commit is contained in:
parent
80ba997c52
commit
182ec4656e
1 changed files with 7 additions and 2 deletions
|
@ -4198,9 +4198,14 @@ var mist = {
|
||||||
if ('browse' in d) { mist.data.browse = d.browse; }
|
if ('browse' in d) { mist.data.browse = d.browse; }
|
||||||
if ('log' in d) { mist.data.log = d.log; }
|
if ('log' in d) { mist.data.log = d.log; }
|
||||||
if ('streams' in d) {
|
if ('streams' in d) {
|
||||||
if ((d.streams) && ('incomplete_list' in d.streams)) {
|
if (d.streams) {
|
||||||
|
if ('incomplete_list' in d.streams) {
|
||||||
delete d.streams.incomplete_list;
|
delete d.streams.incomplete_list;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
d.streams = {};
|
||||||
|
}
|
||||||
mist.data.streams = d.streams;
|
mist.data.streams = d.streams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue