feat: inline critical css
This commit is contained in:
@@ -4,6 +4,7 @@ import { useEventListener } from "@lib/hooks/useEventListener.ts";
|
||||
import { menus } from "@islands/KMenu/commands.ts";
|
||||
import { MenuEntry } from "@islands/KMenu/types.ts";
|
||||
import * as icons from "@components/icons.tsx";
|
||||
import { IS_BROWSER } from "$fresh/runtime.ts";
|
||||
const KMenuEntry = (
|
||||
{ entry, activeIndex, index }: {
|
||||
entry: MenuEntry;
|
||||
@@ -150,7 +151,7 @@ export const KMenu = (
|
||||
} else {
|
||||
input.current?.blur();
|
||||
}
|
||||
}, typeof document !== "undefined" ? document?.body : undefined);
|
||||
}, IS_BROWSER ? document?.body : undefined);
|
||||
|
||||
return (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user