mixpanel-browser
Version:
The official Mixpanel JavaScript browser client library
13 lines (10 loc) • 416 B
JavaScript
/**
* @param {import('./session-recording').SerializedRecording} serializedRecording
* @returns {boolean}
*/
var isRecordingExpired = function(serializedRecording) {
var now = Date.now();
return !serializedRecording || now > serializedRecording['maxExpires'] || now > serializedRecording['idleExpires'];
};
var RECORD_ENQUEUE_THROTTLE_MS = 250;
export { isRecordingExpired, RECORD_ENQUEUE_THROTTLE_MS};