Fix native sharing of live photo (fix #263)

pull/148/head
Varun Patil 2022-11-27 18:32:26 -08:00
parent 7302471865
commit f1c0d51a7d
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class LivePhotoContentSetup {
utils.setupLivePhotoHooks(video); utils.setupLivePhotoHooks(video);
const img = document.createElement("img"); const img = document.createElement("img");
img.classList.add("pswp__img");
img.src = content.data.src; img.src = content.data.src;
img.onload = () => content.onLoaded(); img.onload = () => content.onLoaded();
div.appendChild(img); div.appendChild(img);