tweak: install prompt snooze — Later=2d, No thanks=7d
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
093903162e
commit
e7a332cacd
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
const MIN_VISITS = 3;
|
||||
// How long to wait before re-asking after a "Later" tap (7 days)
|
||||
const SNOOZE_MS = 7 * 24 * 60 * 60 * 1000;
|
||||
// After a hard "No thanks" (second dismiss) wait 30 days
|
||||
const LONG_SNOOZE_MS = 30 * 24 * 60 * 60 * 1000;
|
||||
// How long to wait before re-asking after a "Later" tap (2 days)
|
||||
const SNOOZE_MS = 2 * 24 * 60 * 60 * 1000;
|
||||
// After a hard "No thanks" wait 7 days
|
||||
const LONG_SNOOZE_MS = 7 * 24 * 60 * 60 * 1000;
|
||||
|
||||
function isSnoozed(): boolean {
|
||||
const until = localStorage.getItem(KEY_SNOOZED_UNTIL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue