fix(frontend/player): no inplace operations in loadFiles fn
This commit is contained in:
parent
33eca54031
commit
d4c692b2d4
1 changed files with 3 additions and 2 deletions
|
|
@ -2,9 +2,10 @@ const NO_NTH_FILE = "nnf"
|
|||
|
||||
export default function load(
|
||||
urls: string[],
|
||||
onData: (Uint8Array) => void,
|
||||
onData: (ba: Uint8Array) => void,
|
||||
): Promise<void> {
|
||||
const firstFileURL = urls.shift()
|
||||
const firstFileURL = urls[0]
|
||||
urls = urls.slice(1)
|
||||
if (!firstFileURL) {
|
||||
return Promise.reject("No urls provided")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue