From 6892e9fbb7c763806263572cb09aa4861974fc01 Mon Sep 17 00:00:00 2001
From: okayurisotto <aytkzm@gmail.com>
Date: Sat, 8 Apr 2023 17:41:23 +0900
Subject: [PATCH] =?UTF-8?q?fix(frontend):=20URL=E3=81=AB=E4=BB=96=E3=81=AE?=
 =?UTF-8?q?=E3=82=AF=E3=82=A8=E3=83=AA=E3=81=8C=E3=81=82=E3=82=8B=E3=81=A8?=
 =?UTF-8?q?=E3=81=8D=E3=81=AB=E3=82=82Zen=20UI=E3=81=8C=E9=81=A9=E7=94=A8?=
 =?UTF-8?q?=E3=81=95=E3=82=8C=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=20(#1047?=
 =?UTF-8?q?7)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 packages/frontend/src/init.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/frontend/src/init.ts b/packages/frontend/src/init.ts
index 7809017951..5b3e7ec932 100644
--- a/packages/frontend/src/init.ts
+++ b/packages/frontend/src/init.ts
@@ -187,7 +187,7 @@ try {
 } catch (err) {}
 
 const app = createApp(
-	window.location.search === '?zen' ? defineAsyncComponent(() => import('@/ui/zen.vue')) :
+	new URLSearchParams(window.location.search).has('zen') ? defineAsyncComponent(() => import('@/ui/zen.vue')) :
 	!$i ? defineAsyncComponent(() => import('@/ui/visitor.vue')) :
 	ui === 'deck' ? defineAsyncComponent(() => import('@/ui/deck.vue')) :
 	ui === 'classic' ? defineAsyncComponent(() => import('@/ui/classic.vue')) :