Skip to content

ElectronWebContents.setBackgroundThrottling method

ElectronWebContents › setBackgroundThrottling

Unofficial

Controls whether this web contents throttles animations and timers when backgrounded.

Signature:

setBackgroundThrottling(allowed: boolean): void

Parameters:

Parameter Type Description
allowed boolean Whether background throttling is allowed.

Returns: void