tweak: install prompt snooze — Later=2d, No thanks=7d

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Manohar Gupta 2026-05-29 01:05:00 +05:30
parent 093903162e
commit e7a332cacd

View file

@ -15,10 +15,10 @@ const KEY_INSTALLED = "tia_installed"; // "1" once the user ins
// How many sessions before we first ask (0-indexed — show on the 3rd session) // How many sessions before we first ask (0-indexed — show on the 3rd session)
const MIN_VISITS = 3; const MIN_VISITS = 3;
// How long to wait before re-asking after a "Later" tap (7 days) // How long to wait before re-asking after a "Later" tap (2 days)
const SNOOZE_MS = 7 * 24 * 60 * 60 * 1000; const SNOOZE_MS = 2 * 24 * 60 * 60 * 1000;
// After a hard "No thanks" (second dismiss) wait 30 days // After a hard "No thanks" wait 7 days
const LONG_SNOOZE_MS = 30 * 24 * 60 * 60 * 1000; const LONG_SNOOZE_MS = 7 * 24 * 60 * 60 * 1000;
function isSnoozed(): boolean { function isSnoozed(): boolean {
const until = localStorage.getItem(KEY_SNOOZED_UNTIL); const until = localStorage.getItem(KEY_SNOOZED_UNTIL);