mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-01-24 02:09:06 +00:00
remove manual file type inference
This commit is contained in:
parent
46efe50e5b
commit
58bd017d41
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user