From 610d7d59e655f3fe7eace6a47effc4f5322faf3e Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sat, 29 Jun 2024 21:11:00 +0900 Subject: [PATCH] =?UTF-8?q?params=E3=81=AE=E4=B8=AD=E8=BA=AB=E3=81=8C?= =?UTF-8?q?=E3=81=AA=E3=81=84=E5=A0=B4=E5=90=88=E3=81=AF=20`=3F`=20?= =?UTF-8?q?=E3=81=8C=E3=81=A4=E3=81=8B=E3=81=AA=E3=81=84=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/scripts/get-embed-code.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/scripts/get-embed-code.ts b/packages/frontend/src/scripts/get-embed-code.ts index 27b25336ef..9ab4e3d17b 100644 --- a/packages/frontend/src/scripts/get-embed-code.ts +++ b/packages/frontend/src/scripts/get-embed-code.ts @@ -48,7 +48,7 @@ export function getEmbedCode(path: string, params?: EmbedParams): string { let paramString = ''; if (params) { const searchParams = new URLSearchParams(normalizeEmbedParams(params)); - paramString = '?' + searchParams.toString(); + paramString = searchParams.toString() === '' ? '' : '?' + searchParams.toString(); } const iframeCode = [