isFirefox

isFirefox is a boolean from pota/use/browser, true when the user agent contains firefox. Evaluated once at module load — prefer feature detection where you can, and reserve this for genuine Firefox-specific branches.

Examples

Branch on Firefox

Reads the boolean once and runs Firefox-only code behind the guard.

import { isFirefox } from 'pota/use/browser'

if (isFirefox) {
	/* ... */
}