Skip to content

@wxt-dev/is-background

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

Installation

sh
pnpm add @wxt-dev/is-background

Usage

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

isBackground(); // true | false