From b1d2674a043f4f4f703ec4b572858ed4ee5e7a63 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sun, 2 Jun 2024 00:20:35 +0900 Subject: [PATCH] fix --- packages/frontend/src/_boot_.ts | 2 +- packages/frontend/src/ui/embed.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/_boot_.ts b/packages/frontend/src/_boot_.ts index 3d2647289d..8efeddd4a8 100644 --- a/packages/frontend/src/_boot_.ts +++ b/packages/frontend/src/_boot_.ts @@ -19,7 +19,7 @@ if (isEmbedPage()) { const bootOptions: Partial = {}; const params = new URLSearchParams(location.search); - const color = params.get('color'); + const color = params.get('colorMode'); if (color && ['light', 'dark'].includes(color)) { bootOptions.forceColorMode = color as 'light' | 'dark'; } diff --git a/packages/frontend/src/ui/embed.vue b/packages/frontend/src/ui/embed.vue index c053781445..07303c4d38 100644 --- a/packages/frontend/src/ui/embed.vue +++ b/packages/frontend/src/ui/embed.vue @@ -52,7 +52,7 @@ provideReactiveMetadata(pageMetadata); //#region Embed Style const params = new URLSearchParams(location.search); -const embedRounded = ref(params.get('rounded') !== '0'); +const embedRounded = ref(params.get('rounded') !== 'false'); const maxHeight = ref(params.get('maxHeight') ? parseInt(params.get('maxHeight')!) : 0); //#endregion