Files
wxt/packages/is-background
Aaron c9205bb08f
📼 VHS / Create VHS (push) Cancelled after 0s
feat: New @wxt-dev/is-background package (#2152)
Co-authored-by: Smit <sm17p@users.noreply.github.com>
2026-02-22 13:57:09 -06:00
..

@wxt-dev/is-background

Exports a getter to determine if the current JS context is the background or not.

Installation

pnpm add @wxt-dev/is-background

Usage

import { isBackground } from '@wxt-dev/is-background';

isBackground(); // true | false