mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-04 17:07:22 +00:00
UrlPlayer: start the chain with the url
This commit is contained in:
parent
9fc2265e41
commit
dc22a4782f
1 changed files with 3 additions and 3 deletions
|
|
@ -17,14 +17,14 @@ const prepareVM = ({ url, setStatus, setParts }) => {
|
|||
return args
|
||||
}
|
||||
|
||||
const cleanUrl = url => _ =>
|
||||
const cleanUrl = url =>
|
||||
url.startsWith('blob:')
|
||||
? url.replace(/#(.*)$/g, '')
|
||||
: url
|
||||
|
||||
return Promise.resolve()
|
||||
return Promise.resolve(url)
|
||||
.then(st('loading', 'Downloading file'))
|
||||
.then(cleanUrl(url))
|
||||
.then(cleanUrl)
|
||||
.then(fetch)
|
||||
.then(st('loading', 'Processing file'))
|
||||
.then(response => response.arrayBuffer())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue