mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Oops, missing deferred
This commit is contained in:
parent
ceaa3aaca4
commit
41336a9de6
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue