storage: trim directory_list.txt content to avoid empty strings on split
This commit is contained in:
parent
9fe2b229ff
commit
31ea8179a6
|
@ -88,7 +88,7 @@
|
|||
return gadget.dav_storage.getAttachment("/dev/", "directory_list.txt", {"format": "text"});
|
||||
})
|
||||
.push(function (text) {
|
||||
gadget.directory_list = text.split('\n');
|
||||
gadget.directory_list = text.trim().split('\n');
|
||||
});
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue