From c93a1b2d08290bd42441726ad49d64439ac6cb5c Mon Sep 17 00:00:00 2001 From: CenTdemeern1 Date: Sat, 7 Dec 2024 16:25:10 +0100 Subject: [PATCH] Fix issues caused by reactivity removal --- packages/frontend/src/components/SkFlashPlayer.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/SkFlashPlayer.vue b/packages/frontend/src/components/SkFlashPlayer.vue index 48270309af..26f3c17f4e 100644 --- a/packages/frontend/src/components/SkFlashPlayer.vue +++ b/packages/frontend/src/components/SkFlashPlayer.vue @@ -73,7 +73,7 @@ const props = defineProps<{ const isSensitive = props.flashFile.isSensitive; const url = props.flashFile.url; const comment = props.flashFile.comment ?? ''; -let hide = ref((defaultStore.state.nsfw === 'force') || isSensitive.value && (defaultStore.state.nsfw !== 'ignore')); +let hide = ref((defaultStore.state.nsfw === 'force') || isSensitive && (defaultStore.state.nsfw !== 'ignore')); let playerHide = ref(true); let ruffleContainer = ref(); let playPauseButtonKey = ref(0); @@ -173,7 +173,7 @@ async function loadContent() { ruffleContainer.value?.appendChild(player.value); loadingStatus.value = i18n.ts._flash.loadingFlashFile; try { - await player.value.load(url.value); + await player.value.load(url); loadingStatus.value = undefined; } catch (error) { try {