From e9ef8fc75a7f344f103fb2218f4c0125101391d4 Mon Sep 17 00:00:00 2001
From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com>
Date: Sat, 6 Jul 2024 19:37:58 +0900
Subject: [PATCH] =?UTF-8?q?=E5=9F=8B=E3=82=81=E8=BE=BC=E3=81=BF=E3=83=9A?=
 =?UTF-8?q?=E3=83=BC=E3=82=B8=E3=81=8B=E3=81=A9=E3=81=86=E3=81=8B=E3=81=AE?=
 =?UTF-8?q?=E5=88=A4=E5=AE=9A=E3=81=AF=E6=9C=80=E5=88=9D=E3=81=AE=E4=B8=80?=
 =?UTF-8?q?=E5=9B=9E=E3=81=A0=E3=81=91=E3=81=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 packages/frontend/src/scripts/embed-page.ts | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/packages/frontend/src/scripts/embed-page.ts b/packages/frontend/src/scripts/embed-page.ts
index 6b91634a9e..3b710cb42f 100644
--- a/packages/frontend/src/scripts/embed-page.ts
+++ b/packages/frontend/src/scripts/embed-page.ts
@@ -5,9 +5,14 @@
 
 //#region Embed関連の定義
 
+let _isEmbedPage: boolean | null = null;
+
 /** 埋め込みページかどうか */
 export function isEmbedPage() {
-	return location.pathname.startsWith('/embed');
+	if (_isEmbedPage === null) {
+		_isEmbedPage = location.pathname.startsWith('/embed/');
+	}
+	return _isEmbedPage;
 }
 
 /** 埋め込みの対象となるエンティティ(/embed/xxx の xxx の部分と対応させる) */