1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2025-01-01 16:37:39 +01:00

Change banner percentage

This commit is contained in:
Cooper Ransom 2024-03-19 20:59:56 -04:00
parent 7aaa652560
commit b2bc993082

View file

@ -87,8 +87,8 @@ export function ExtensionBanner(props: {
if (currentLocation !== loc || pathname === "/onboarding/extension")
return null;
// Show the banner with a 50% chance or not if users dont meet requirements
if (!isEligible && Math.random() < 0.5) {
// Show the banner with a 35% chance or not if users dont meet requirements
if (!isEligible && Math.random() < 0.35) {
let bannerText = "";
switch (props.extensionState) {
case "noperms":