@brainfish-ai/web-tracker
Version:
Brainfish Tracker for Web
9 lines (8 loc) • 448 B
TypeScript
/**
* Determines if the current page can be discovered for recording purposes.
*
* @param recordingBlocklist - List of path patterns that should not be recorded
* @param allowLocalhostRecording - Override to allow recording on localhost/127.0.0.1
* @returns boolean - true if the current page can be discovered, false otherwise
*/
export default function canDiscover(recordingBlocklist: string[], allowLocalhostRecording?: boolean): boolean;