diff src/app/app.component.ts @ 453:8113b6f5a75e

Add a mimeType property to audio items.
author Lucas Thompson <dev@lucas.im>
date Thu, 29 Jun 2017 14:35:51 +0100
parents d2af14e0b949
children 7bb0bac6f8dc
line wrap: on
line diff
--- a/src/app/app.component.ts	Thu Jun 29 14:34:16 2017 +0100
+++ b/src/app/app.component.ts	Thu Jun 29 14:35:51 2017 +0100
@@ -164,7 +164,8 @@
       hasSharedTimeline: true,
       title: title,
       description: new Date().toLocaleString(),
-      id: `${++this.countingId}`
+      id: `${++this.countingId}`,
+      mimeType: file.type
     } as PendingRootAudioItem;
     this.rootAudioItem = pending as RootAudioItem; // TODO this is silly