Skip to content

Commit

Permalink
Decrease max inactivity time
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyfallWasTaken committed Dec 19, 2024
1 parent dc9bbcf commit dadb0b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entrypoints/figma-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { m2iMessenger } from "@/lib/messaging/m2i-messaging";
// People often ponder their designs or use sites like Dribbble for inspiration.
// This can lead to long periods of inactivity and leave the user annoyed when
// all their time hasn't been tracked. To prevent this, we'll allow them to be inactive
// for up to 10 minutes before we stop sending heartbeats.
const MAX_INACTIVITY_MS = 60 * 10 * 1000;
// for up to 6 minutes before we stop sending heartbeats.
const MAX_INACTIVITY_MS = 60 * 6 * 1000;
const HEARTBEAT_INTERVAL_MS = 60 * 1000;
let lastHeartbeatTs: number | null = null;
let lastDocUpdateTs: number | null = null;
Expand Down

0 comments on commit dadb0b4

Please sign in to comment.