aboutsummaryrefslogtreecommitdiff
path: root/src/fields/VideoField.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/fields/VideoField.ts')
-rw-r--r--src/fields/VideoField.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fields/VideoField.ts b/src/fields/VideoField.ts
index 626e4ec83..838b811b1 100644
--- a/src/fields/VideoField.ts
+++ b/src/fields/VideoField.ts
@@ -4,7 +4,7 @@ import { Types } from "../server/Message";
export class VideoField extends BasicField<URL> {
constructor(data: URL | undefined = undefined, id?: FieldId, save: boolean = true) {
- super(data == undefined ? new URL("http://techslides.com/demos/sample-videos/small.mp4") : data, save, id);
+ super(data === undefined ? new URL("http://techslides.com/demos/sample-videos/small.mp4") : data, save, id);
}
toString(): string {
@@ -19,12 +19,12 @@ export class VideoField extends BasicField<URL> {
return new VideoField(this.Data);
}
- ToJson(): { type: Types, data: string, _id: string } {
+ ToJson() {
return {
type: Types.Video,
data: this.Data.href,
- _id: this.Id
- }
+ id: this.Id
+ };
}
} \ No newline at end of file