UNPKG

webdev-power-kit

Version:

A powerful toolkit that simplifies access to browser features like clipboard, notifications, battery, vibration, and more — perfect for modern web developers.

10 lines (9 loc) 310 B
/** * Returns true if the current tab is visible. */ export declare function isTabVisible(): boolean; /** * Subscribes to tab visibility changes. * @param callback - function to run on change (true = visible) */ export declare function onTabVisibilityChange(callback: (isVisible: boolean) => void): void;