Skip to content

Commit

Permalink
fix(media): not being proxied instantly
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jan 18, 2024
1 parent 4e5e234 commit 041f2d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/pages/posts/post/PostMedia.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
const { proxiedUrl } = useProxyHelper(localSrc.value)
localSrc.value = proxiedUrl.value
// Fix: Inmediately set src to proxied url, since onIntersectionObserver method will not be called until out of viewport
event.target.src = proxiedUrl.value
return
}
Expand Down

0 comments on commit 041f2d7

Please sign in to comment.