···5555 );
5656}
57575858-// This jawn is for advertising the extension for le
5858+// This jawn is for advertising the extension for le skids
5959export function ExtensionBanner(props: {
6060 location?: string;
6161 extensionState: ExtensionStatus;
···6565 const currentLocation = useBannerStore((s) => s.location);
6666 const loc = props.location ?? null;
6767 const { pathname } = useLocation();
6868+ const isEligible =
6969+ /CrOS/.test(navigator.userAgent) ||
7070+ /TV/.test(navigator.userAgent) ||
7171+ /iPhone|iPad|iPod/i.test(navigator.userAgent);
68726973 useEffect(() => {
7074 if (loc) {
···8387 if (currentLocation !== loc || pathname === "/onboarding/extension")
8488 return null;
85898686- // Show the banner with a 40% chance
8787- if (Math.random() < 0.4) {
9090+ // Show the banner with a 50% chance or not if users dont meet requirements
9191+ if (!isEligible && Math.random() < 0.5) {
8892 let bannerText = "";
8993 switch (props.extensionState) {
9094 case "noperms":