extracted filelist into its own file
This commit is contained in:
parent
d69c535dda
commit
bed57af6c5
4 changed files with 235 additions and 224 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue