From b6dd48a3759ffa98e84da884cad2f7f5e8e82437 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 23 Jun 2023 17:40:01 -0700 Subject: [PATCH] refactor: :recycle: url preview --- packages/client/src/components/MkUrlPreview.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/client/src/components/MkUrlPreview.vue b/packages/client/src/components/MkUrlPreview.vue index 3706f78858..599ba16bef 100644 --- a/packages/client/src/components/MkUrlPreview.vue +++ b/packages/client/src/components/MkUrlPreview.vue @@ -44,12 +44,12 @@ height: `${tweetHeight}px`, }" :src="`https://platform.twitter.com/embed/index.html?embedId=${embedId}&hideCard=false&hideThread=false&lang=en&theme=${ - $store.state.darkMode ? 'dark' : 'light' + defaultStore.state.darkMode ? 'dark' : 'light' }&id=${tweetId}`" >
- +
-

{{ title }}

+

{{ title }}

{{ @@ -87,7 +87,7 @@

@@ -106,6 +106,7 @@ import { onMounted, onUnmounted } from "vue"; import { url as local, lang } from "@/config"; import { i18n } from "@/i18n"; import MkButton from "@/components/MkButton.vue"; +import { defaultStore } from "@/store"; const props = withDefaults( defineProps<{