fix: restore fitvids once and for all
This commit is contained in:
parent
1b061ac55a
commit
745f174ed2
@ -46,18 +46,14 @@
|
||||
import { browser } from '$app/env';
|
||||
import PostSeo from '$lib/components/SEO/PostSEO.svelte';
|
||||
import { onMount } from 'svelte';
|
||||
import { afterNavigate } from '$app/navigation';
|
||||
|
||||
export let post: any;
|
||||
export let prevPost: any;
|
||||
export let nextPost: any;
|
||||
export let relatedPost: any[];
|
||||
|
||||
$: if (post) {
|
||||
if (browser) {
|
||||
fitvids();
|
||||
}
|
||||
}
|
||||
onMount(() => {
|
||||
afterNavigate(() => {
|
||||
if (browser) {
|
||||
fitvids();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user