storage: trim directory_list.txt content to avoid empty strings on split

This commit is contained in:
Nicolas Wavrant 2020-04-10 07:07:13 +02:00
parent 9fe2b229ff
commit 31ea8179a6
1 changed files with 1 additions and 1 deletions

View File

@ -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');
});
})