From 899f5bca85a1084a43be8158d694bc7a11a1d1a3 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 8 Aug 2023 11:07:25 +0200 Subject: [PATCH] feat: some shit --- islands/KMenu.tsx | 2 +- islands/Search.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/islands/KMenu.tsx b/islands/KMenu.tsx index b8706ec..209e4ec 100644 --- a/islands/KMenu.tsx +++ b/islands/KMenu.tsx @@ -150,7 +150,7 @@ export const KMenu = ( } else { input.current?.blur(); } - }, document?.body); + }, typeof document !== "undefined" ? document?.body : undefined); return (
{ ) { window.location.href += "?q="; } - }, document?.body); + }, typeof document !== "undefined" ? document?.body : undefined); return <>; };