remove manual file type inference

This commit is contained in:
Barry Gitarts 2019-08-31 10:29:14 -04:00 committed by Barry G
parent 46efe50e5b
commit 58bd017d41

View File

@ -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
}