Oops, missing deferred

pull/21833/head
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
1 changed files with 2 additions and 0 deletions

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");