From f1c0d51a7d18a94d2aafdc4f26df5d821d9ea3dc Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sun, 27 Nov 2022 18:32:26 -0800 Subject: [PATCH] Fix native sharing of live photo (fix #263) --- src/components/PsLivePhoto.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/PsLivePhoto.ts b/src/components/PsLivePhoto.ts index 80905f68..f73b62c9 100644 --- a/src/components/PsLivePhoto.ts +++ b/src/components/PsLivePhoto.ts @@ -41,6 +41,7 @@ class LivePhotoContentSetup { utils.setupLivePhotoHooks(video); const img = document.createElement("img"); + img.classList.add("pswp__img"); img.src = content.data.src; img.onload = () => content.onLoaded(); div.appendChild(img);