mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 14:10:53 +03:00
error if file from localStorage is old (no manifest)
This commit is contained in:
@@ -4,6 +4,9 @@ import { del, fileInfo, setParams, setPassword } from './api';
|
|||||||
|
|
||||||
export default class OwnedFile {
|
export default class OwnedFile {
|
||||||
constructor(obj) {
|
constructor(obj) {
|
||||||
|
if (!obj.manifest) {
|
||||||
|
throw new Error('invalid file object');
|
||||||
|
}
|
||||||
this.id = obj.id;
|
this.id = obj.id;
|
||||||
this.url = obj.url;
|
this.url = obj.url;
|
||||||
this.name = obj.name;
|
this.name = obj.name;
|
||||||
|
|||||||
Reference in New Issue
Block a user