UNPKG

single-tab

Version:

A lightweight React library to detect and handle duplicate tabs in web applications

7 lines (6 loc) 228 B
/** * Manages duplicate tab detection using BroadcastChannel (modern browsers) or sessionStorage (fallback). */ export declare const createTabManager: (appId: string, onDuplicate?: () => void) => { cleanup: () => void; };