Fix playback error message for load failure
We expect the promise to be rejected with a string for display to the user.
This commit is contained in:
parent
46292477c8
commit
c1d2449fb8
|
@ -24,7 +24,7 @@ function loadFile() {
|
|||
return new Promise((resolve, reject) => {
|
||||
const script = document.createElement("script");
|
||||
script.onload = resolve;
|
||||
script.onerror = reject;
|
||||
script.onerror = () => { reject("Failed to load " + fname); };
|
||||
document.body.appendChild(script);
|
||||
script.src = "../recordings/" + fname;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue