From 58bd017d415db7b0c739f552ad1c264740daf6d6 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Sat, 31 Aug 2019 10:29:14 -0400 Subject: [PATCH] remove manual file type inference --- src/utils/project.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/project.js b/src/utils/project.js index 50520f2..278fb2c 100644 --- a/src/utils/project.js +++ b/src/utils/project.js @@ -6,8 +6,7 @@ const { utils } = web3 export const formatProjectId = id => utils.toHex(id) const getFile = filePath => filePath.split('/').slice(-1)[0] const formatMedia = content => { - const type = 'video/mp4' - const blob = new Blob([content], {type}) + const blob = new Blob([content]) const src = URL.createObjectURL(blob) return src }