extracted filelist into its own file

This commit is contained in:
Danny Coates 2017-08-10 19:01:39 -07:00
parent d69c535dda
commit bed57af6c5
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
4 changed files with 235 additions and 224 deletions

View file

@ -86,7 +86,11 @@ export default class Storage {
}
getFileById(id) {
return this.engine.getItem(id);
try {
return JSON.parse(this.engine.getItem(id));
} catch (e) {
return null;
}
}
remove(property) {