mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-02-03 07:03:26 +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)
|
export const formatProjectId = id => utils.toHex(id)
|
||||||
const getFile = filePath => filePath.split('/').slice(-1)[0]
|
const getFile = filePath => filePath.split('/').slice(-1)[0]
|
||||||
const formatMedia = content => {
|
const formatMedia = content => {
|
||||||
const type = 'video/mp4'
|
const blob = new Blob([content])
|
||||||
const blob = new Blob([content], {type})
|
|
||||||
const src = URL.createObjectURL(blob)
|
const src = URL.createObjectURL(blob)
|
||||||
return src
|
return src
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user