diff --git a/src/app/ItemPageLayout.js b/src/app/ItemPageLayout.js index 38577bbc..e393a89f 100644 --- a/src/app/ItemPageLayout.js +++ b/src/app/ItemPageLayout.js @@ -105,7 +105,6 @@ export function SubtleSkeleton({ isLoaded, ...props }) { function ItemPageBadges({ item, isEmbedded }) { const searchBadgesAreLoaded = item?.name != null && item?.isNc != null; - const shouldShowOwls = useShouldShowOwls(); return ( @@ -151,7 +150,7 @@ function ItemPageBadges({ item, isEmbedded }) { Jellyneo - {item.isNc && shouldShowOwls && ( + {item.isNc && ( { - const onKeyPress = (e) => { - const newMostRecentKeys = [...mostRecentKeys, e.key].slice(-5); - if (newMostRecentKeys.join("") === "~owls") { - SHOULD_SHOW_OWLS = true; - setShouldShowOwls(true); - } - setMostRecentKeys(newMostRecentKeys); - }; - - window.addEventListener("keypress", onKeyPress); - return () => window.removeEventListener("keypress", onKeyPress); - }); - - return shouldShowOwls; -} - export default ItemPageLayout;