Oops, missing deferred

This commit is contained in:
Will Hunt 2018-09-26 02:06:02 +01:00 committed by GitHub
parent ceaa3aaca4
commit 41336a9de6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,6 +148,8 @@ function infoForImageFile(matrixClient, roomId, imageFile) {
* @return {Promise} A promise that resolves with the video image element.
*/
function loadVideoElement(videoFile) {
const deferred = Promise.defer();
// Load the file into an html element
const video = document.createElement("video");