From 1b061ac55afec81e85fadb48964ac234e212b810 Mon Sep 17 00:00:00 2001 From: Damillora Date: Sun, 24 Jul 2022 06:13:31 +0700 Subject: [PATCH] fix: fitvids on next prev --- src/routes/[tag]/[slug].svelte | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/routes/[tag]/[slug].svelte b/src/routes/[tag]/[slug].svelte index b6ff777..a3bcf8e 100644 --- a/src/routes/[tag]/[slug].svelte +++ b/src/routes/[tag]/[slug].svelte @@ -52,6 +52,11 @@ export let nextPost: any; export let relatedPost: any[]; + $: if (post) { + if (browser) { + fitvids(); + } + } onMount(() => { if (browser) { fitvids();